1
2
3
4
5
6
7
8
9
10
11
12
13
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("Configuration"), 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("Configuration"), 2)
end
|