liquid_feedback_frontend
view app/main/area/list.lua @ 197:c0835d707465
Area module refactored
author | bsw |
---|---|
date | Mon Nov 08 15:30:59 2010 +0100 (2010-11-08) |
parents | c553898f64cb |
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 }