}
-- 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.index = true
end
-- 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.setuser = "nobody"
page.setgroup = "nogroup"
-- plugin menu entry
entry(
{ "admin", "statistics", "graph", plugin },
- template("admin_statistics/index"), labels[plugin], i
+ call("statistics_render"), labels[plugin], i
).query = { timespan = span }
-- if more then one instance is found then generate submenu