liquid_feedback_frontend
view app/main/area/list.lua @ 240:910bbf6bc6b1
Show area delegations in area list
author | Ingo Bormuth <mail@ibormuth.de> |
---|---|
date | Tue Dec 27 03:34:35 2011 +0100 (2011-12-27) |
parents | c0835d707465 |
children | 6725c13b6ce0 |
line source
1 local areas_selector = Area:build_selector{ active = true }
4 if app.session.member_id then
5 slot.put_into("title", _'Area list')
6 else
7 slot.put_into("title", encode.html(config.app_title))
8 end
11 if not app.session.member_id and config.motd_public then
12 local help_text = config.motd_public
13 ui.container{
14 attr = { class = "wiki motd" },
15 content = function()
16 slot.put(format.wiki_text(help_text))
17 end
18 }
19 end
21 util.help("area.list", _"Area list")
24 execute.view{
25 module = "area",
26 view = "_list",
27 params = { areas_selector = areas_selector }
28 }