projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-statistics: reorganise menu items
[project/luci.git]
/
applications
/
luci-app-statistics
/
luasrc
/
controller
/
luci_statistics
/
luci_statistics.lua
diff --git
a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index
49eab5a
..
d0415cd
100644
(file)
--- a/
applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/
applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@
-20,7
+20,7
@@
function index()
local labels = {
s_output = _("Output plugins"),
local labels = {
s_output = _("Output plugins"),
- s_
system = _("System
plugins"),
+ s_
general = _("General
plugins"),
s_network = _("Network plugins"),
conntrack = _("Conntrack"),
s_network = _("Network plugins"),
conntrack = _("Conntrack"),
@@
-54,7
+54,7
@@
function index()
-- our collectd menu
local collectd_menu = {
output = { "csv", "network", "rrdtool", "unixsock" },
-- our collectd menu
local collectd_menu = {
output = { "csv", "network", "rrdtool", "unixsock" },
-
system
= { "cpu", "df", "disk", "email", "entropy", "exec", "irq", "load", "memory", "nut", "processes", "uptime" },
+
general
= { "cpu", "df", "disk", "email", "entropy", "exec", "irq", "load", "memory", "nut", "processes", "uptime" },
network = { "conntrack", "dns", "interface", "iptables", "netlink", "olsrd", "ping", "splash_leases", "tcpconns", "iwinfo" }
}
network = { "conntrack", "dns", "interface", "iptables", "netlink", "olsrd", "ping", "splash_leases", "tcpconns", "iwinfo" }
}
@@
-62,7
+62,7
@@
function index()
local st = entry({"admin", "statistics"}, template("admin_statistics/index"), _("Statistics"), 80)
st.index = true
local st = entry({"admin", "statistics"}, template("admin_statistics/index"), _("Statistics"), 80)
st.index = true
- entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _("
Collectd"), 1
0).subindex = true
+ entry({"admin", "statistics", "collectd"}, cbi("luci_statistics/collectd"), _("
Setup"), 2
0).subindex = true
-- populate collectd plugin menu
-- populate collectd plugin menu
@@
-87,7
+87,7
@@
function index()
end
-- output views
end
-- output views
- local page = entry( { "admin", "statistics", "graph" }, template("admin_statistics/index"), _("Graphs"),
8
0)
+ local page = entry( { "admin", "statistics", "graph" }, template("admin_statistics/index"), _("Graphs"),
1
0)
page.setuser = "nobody"
page.setgroup = "nogroup"
page.setuser = "nobody"
page.setgroup = "nogroup"