diff options
author | Steven Barth <steven@midlink.org> | 2008-06-03 20:22:54 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-03 20:22:54 +0000 |
commit | 60a726343c19630e91228a0e660ea9b4793c2fb1 (patch) | |
tree | 39b216747d9d1e6f941a8720c21ef3831ca91bad /modules/freifunk/luasrc/controller | |
parent | db3a4c5c9799c8921fc8a6b4dd17acc19fb510b3 (diff) |
* Linked statistic graphs to Freifunk module
Diffstat (limited to 'modules/freifunk/luasrc/controller')
-rw-r--r-- | modules/freifunk/luasrc/controller/freifunk/freifunk.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua index 39ae5fe9a..43d124625 100644 --- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua +++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua @@ -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" |