applications/luci-statistics: fix controller (#7344)

This commit is contained in:
Jo-Philipp Wich 2011-12-12 14:13:07 +00:00
parent 45985e01de
commit c833c96750

View file

@ -69,7 +69,7 @@ function index()
} }
-- create toplevel menu nodes -- create toplevel menu nodes
local st = entry({"admin", "statistics"}, call("statistics_index"), _("Statistics"), 80) local st = entry({"admin", "statistics"}, template("admin_statistics/index"), _("Statistics"), 80)
st.i18n = "statistics" st.i18n = "statistics"
st.index = true st.index = true
@ -99,7 +99,7 @@ function index()
end end
-- output views -- output views
local page = entry( { "admin", "statistics", "graph" }, call("statistics_index"), _("Graphs"), 80) local page = entry( { "admin", "statistics", "graph" }, template("admin_statistics/index"), _("Graphs"), 80)
page.i18n = "statistics" page.i18n = "statistics"
page.setuser = "nobody" page.setuser = "nobody"
page.setgroup = "nogroup" page.setgroup = "nogroup"
@ -115,7 +115,7 @@ function index()
-- plugin menu entry -- plugin menu entry
entry( entry(
{ "admin", "statistics", "graph", plugin }, { "admin", "statistics", "graph", plugin },
template("admin_statistics/index"), labels[plugin], i call("statistics_render"), labels[plugin], i
).query = { timespan = span } ).query = { timespan = span }
-- if more then one instance is found then generate submenu -- if more then one instance is found then generate submenu