diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-04-21 22:57:07 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-04-21 22:57:07 +0000 |
commit | f375c498f2058b9d8244a628ca78ef5110b2be79 (patch) | |
tree | 55f4ae37fb1aeee0bd45a2f8d6dab6aae41d9a6a /applications/luci-vnstat/luasrc/controller | |
parent | 34b3ae2a428f75165001dc0ef19cd33bc7f2323a (diff) |
applications: add luci-vnstat, frontend for the VnStat traffic monitor
Diffstat (limited to 'applications/luci-vnstat/luasrc/controller')
-rw-r--r-- | applications/luci-vnstat/luasrc/controller/vnstat.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-vnstat/luasrc/controller/vnstat.lua b/applications/luci-vnstat/luasrc/controller/vnstat.lua new file mode 100644 index 0000000000..562fd0a246 --- /dev/null +++ b/applications/luci-vnstat/luasrc/controller/vnstat.lua @@ -0,0 +1,14 @@ +module("luci.controller.vnstat", package.seeall) + +function index() + require("luci.i18n").loadc("vnstat") + local i18n = luci.i18n.translate + + entry({"admin", "network", "vnstat"}, alias("admin", "network", "vnstat", "graphs"), i18n("VnStat Traffic Monitor"), 90).i18n = "vnstat" + entry({"admin", "network", "vnstat", "graphs"}, template("vnstat"), i18n("Graphs"), 1) + entry({"admin", "network", "vnstat", "config"}, cbi("vnstat"), i18n("VnStat Traffic Monitor"), 2) + + entry({"mini", "network", "vnstat"}, alias("mini", "network", "vnstat", "graphs"), i18n("VnStat Traffic Monitor"), 90).i18n = "vnstat" + entry({"mini", "network", "vnstat", "graphs"}, template("vnstat"), i18n("Graphs"), 1) + entry({"mini", "network", "vnstat", "config"}, cbi("vnstat"), i18n("VnStat Traffic Monitor"), 2) +end |