summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-vnstat/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-vnstat/luasrc/controller')
-rw-r--r--applications/luci-vnstat/luasrc/controller/vnstat.lua14
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 000000000..562fd0a24
--- /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