livestats: group pages together in a 'Realtime Status' menu item
[project/luci.git] / applications / luci-livestats / luasrc / controller / livestats.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15
16 module("luci.controller.livestats", package.seeall)
17
18 function index()
19         require("luci.i18n")
20         luci.i18n.loadc("livestats")
21         local i18n = luci.i18n.translate
22
23         entry( {"admin", "status", "livestats"}, alias("admin", "status", "livestats", "wifistat"), i18n("Realtime Status"), 90 ).i18n = "livestats"
24         entry( {"admin", "status", "livestats", "wifistat"}, template("livestats/wireless"),        i18n("Wireless"),        10 )
25         entry( {"admin", "status", "livestats", "trafstat"}, template("livestats/traffic"),         i18n("Traffic"),         20 )
26         entry( {"admin", "status", "livestats", "loadavg"},  template("livestats/loadavg"),         i18n("System Load"),     30 )
27         
28         entry( {"mini", "network", "wifistat"}, template("livestats/wireless"), i18n("Realtime Wireless Status"), 90 ).i18n = "livestats"
29         entry( {"mini", "network", "trafstat"}, template("livestats/traffic"),  i18n("Realtime Traffic Status"),  91 ).i18n = "livestats"
30         entry( {"mini", "system", "loadavg"},   template("livestats/loadavg"),  i18n("Realtime Load Status"),     92 ).i18n = "livestats"
31 end