summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-vnstat/luasrc/controller/vnstat.lua
blob: e6f04c80f81f0be670d0a98df359a5032c31ce84 (plain)
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