diff options
author | Benoît Knecht <benoit.knecht@gmail.com> | 2010-04-20 14:40:25 +0000 |
---|---|---|
committer | Benoît Knecht <benoit.knecht@gmail.com> | 2010-04-20 14:40:25 +0000 |
commit | 02558ad587a7a33bc20687279b21be43b8065b84 (patch) | |
tree | fdbfdb02c9ad11197d26f70a25fadc4672bf3121 /applications/luci-livestats | |
parent | ab48417fdaa7f8a1aaae60a1008eedf84b09363b (diff) |
livestats: group pages together in a 'Realtime Status' menu item
Diffstat (limited to 'applications/luci-livestats')
-rw-r--r-- | applications/luci-livestats/luasrc/controller/livestats.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/applications/luci-livestats/luasrc/controller/livestats.lua b/applications/luci-livestats/luasrc/controller/livestats.lua index b476962526..618c2c50a3 100644 --- a/applications/luci-livestats/luasrc/controller/livestats.lua +++ b/applications/luci-livestats/luasrc/controller/livestats.lua @@ -18,12 +18,14 @@ module("luci.controller.livestats", package.seeall) function index() require("luci.i18n") luci.i18n.loadc("livestats") + local i18n = luci.i18n.translate - entry( {"admin", "status", "wifistat"}, template("livestats/wireless"), luci.i18n.translate("Realtime Wireless Status"), 90 ).i18n = "livestats" - entry( {"admin", "status", "trafstat"}, template("livestats/traffic"), luci.i18n.translate("Realtime Traffic Status"), 91 ).i18n = "livestats" - entry( {"admin", "status", "loadavg"}, template("livestats/loadavg"), luci.i18n.translate("Realtime Load Status"), 92 ).i18n = "livestats" + entry( {"admin", "status", "livestats"}, alias("admin", "status", "livestats", "wifistat"), i18n("Realtime Status"), 90 ).i18n = "livestats" + entry( {"admin", "status", "livestats", "wifistat"}, template("livestats/wireless"), i18n("Wireless"), 10 ) + entry( {"admin", "status", "livestats", "trafstat"}, template("livestats/traffic"), i18n("Traffic"), 20 ) + entry( {"admin", "status", "livestats", "loadavg"}, template("livestats/loadavg"), i18n("System Load"), 30 ) - entry( {"mini", "network", "wifistat"}, template("livestats/wireless"), luci.i18n.translate("Realtime Wireless Status"), 90 ).i18n = "livestats" - entry( {"mini", "network", "trafstat"}, template("livestats/traffic"), luci.i18n.translate("Realtime Traffic Status"), 91 ).i18n = "livestats" - entry( {"mini", "system", "loadavg"}, template("livestats/loadavg"), luci.i18n.translate("Realtime Load Status"), 92 ).i18n = "livestats" + entry( {"mini", "network", "wifistat"}, template("livestats/wireless"), i18n("Realtime Wireless Status"), 90 ).i18n = "livestats" + entry( {"mini", "network", "trafstat"}, template("livestats/traffic"), i18n("Realtime Traffic Status"), 91 ).i18n = "livestats" + entry( {"mini", "system", "loadavg"}, template("livestats/loadavg"), i18n("Realtime Load Status"), 92 ).i18n = "livestats" end |