liquid_feedback_frontend

view app/main/area/list.lua @ 264:1b8d51e21614

More unit support added
author bsw
date Tue Feb 07 18:32:18 2012 +0100 (2012-02-07)
parents 7ef1e03e4057
children 7196685f9dd7
line source
1 local unit_id = config.single_unit_id or param.get("unit_id", atom.integer)
3 local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
5 local unit = Unit:by_id(unit_id)
8 if not config.single_unit_id then
9 slot.put_into("title", unit.name)
10 else
11 slot.put_into("title", encode.html(config.app_title))
12 end
15 if not app.session.member_id and config.motd_public then
16 local help_text = config.motd_public
17 ui.container{
18 attr = { class = "wiki motd" },
19 content = function()
20 slot.put(format.wiki_text(help_text))
21 end
22 }
23 end
25 util.help("area.list", _"Area list")
27 if app.session.member_id then
28 execute.view{
29 module = "delegation",
30 view = "_show_box",
31 params = { unit_id = unit_id }
32 }
33 end
36 execute.view{
37 module = "area",
38 view = "_list",
39 params = { areas_selector = areas_selector }
40 }

Impressum / About Us