* Linked statistic graphs to Freifunk module
This commit is contained in:
parent
db3a4c5c97
commit
60a726343c
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
module("luci.controller.freifunk.freifunk", package.seeall)
|
||||
|
||||
function index()
|
||||
local i18n = luci.i18n.translate
|
||||
|
||||
local page = node()
|
||||
page.target = alias("freifunk")
|
||||
|
||||
|
@ -33,6 +35,10 @@ function index()
|
|||
|
||||
assign({"freifunk", "olsr"}, node("admin", "status", "olsr"), "OLSR", 30)
|
||||
|
||||
if luci.fs.isfile("/etc/config/luci_statistics") then
|
||||
assign({"freifunk", "statistics"}, node("admin", "statistics", "graph"), i18n("stat_statistics", "Statistiken"), 40)
|
||||
end
|
||||
|
||||
local page = node("admin", "index", "freifunk")
|
||||
page.target = cbi("freifunk/freifunk")
|
||||
page.title = "Freifunk"
|
||||
|
|
Loading…
Reference in a new issue