summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk
diff options
context:
space:
mode:
Diffstat (limited to 'modules/freifunk')
-rw-r--r--modules/freifunk/luasrc/controller/freifunk/freifunk.lua6
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 39ae5fe9ad..43d124625f 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"