diff options
author | Steven Barth <steven@midlink.org> | 2008-10-09 20:28:07 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-10-09 20:28:07 +0000 |
commit | 8815b6a7dd24a481606db03c5980bc310709a103 (patch) | |
tree | 0f9f9ff74722ab4210b84893757d072be5231766 /applications/luci-statistics/luasrc/controller | |
parent | dc494c838c15ef59a72927b9cf6f18878d06bd69 (diff) |
OXYGEN #1: Added index-marks
Diffstat (limited to 'applications/luci-statistics/luasrc/controller')
-rw-r--r-- | applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua index 7ca8a5aa3..0aa66362b 100644 --- a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua +++ b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua @@ -50,8 +50,12 @@ function index() } -- create toplevel menu nodes - entry({"admin", "statistics"}, call("statistics_index"), _i18n("statistics"), 80).i18n = "statistics" - entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _i18n("collectd"), 10) + local st = entry({"admin", "statistics"}, call("statistics_index"), _i18n("statistics"), 80) + st.i18n = "statistics" + st.index = true + + entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _i18n("collectd"), 10).subindex = true + -- populate collectd plugin menu local index = 1 @@ -61,7 +65,7 @@ function index() call( "statistics_" .. section .. "plugins" ), _i18n( section .. "plugins" ), index * 10 - ) + ).index = true for j, plugin in luci.util.vspairs( plugins ) do _entry( |