summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/controller
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2010-11-18 03:29:17 +0000
committerManuel Munz <freifunk@somakoma.de>2010-11-18 03:29:17 +0000
commite8a9cad684d875a2f2c6dcb94149409049d42492 (patch)
treea34826ac81d8cab5d8e123a111793c8b2220aa4b /modules/freifunk/luasrc/controller
parent543e129ab56f1c96962a0c9a3d8fe2279f5cd2db (diff)
modules/freifunk: Make the public index page editable
Diffstat (limited to 'modules/freifunk/luasrc/controller')
-rw-r--r--modules/freifunk/luasrc/controller/freifunk/freifunk.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua
index d4d9413089..6df681afdb 100644
--- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua
+++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua
@@ -41,11 +41,9 @@ function index()
page.target = template("freifunk/contact")
page.title = "Kontakt"
- entry({"freifunk", "status"}, alias("freifunk", "status", "status"), "Status", 20)
-
- local page = node("freifunk", "status", "status")
+ local page = node("freifunk", "status")
page.target = form("freifunk/public_status")
- page.title = i18n("Overview")
+ page.title = i18n("Status")
page.order = 20
page.i18n = "base"
page.setuser = false
@@ -67,6 +65,11 @@ function index()
page.title = "Freifunk"
page.order = 30
+ local page = node("admin", "freifunk", "Index-Page")
+ page.target = cbi("freifunk/user_index")
+ page.title = "Index-Page"
+ page.order = 35
+
local page = node("admin", "freifunk", "contact")
page.target = cbi("freifunk/contact")
page.title = "Kontakt"