liquid_feedback_frontend

view app/main/area/list.lua @ 279:23c98752e697

Added wiki support for suggestions and member statements
author bsw
date Thu Feb 16 14:08:43 2012 +0100 (2012-02-16)
parents fecd4c13054a
children 808269b7f41c
line source
1 local unit_id = config.single_unit_id or param.get("unit_id", atom.integer)
2 local title = param.get("title", "function")
4 local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
5 areas_selector:add_order_by("member_weight DESC")
7 local unit = Unit:by_id(unit_id)
10 if not config.single_unit_id then
11 slot.put_into("title", unit.name)
12 else
13 slot.put_into("title", encode.html(config.app_title))
14 end
17 if not app.session.member_id and config.motd_public then
18 local help_text = config.motd_public
19 ui.container{
20 attr = { class = "wiki motd" },
21 content = function()
22 slot.put(format.wiki_text(help_text))
23 end
24 }
25 end
27 util.help("area.list", _"Area list")
29 if app.session.member_id then
30 execute.view{
31 module = "delegation",
32 view = "_show_box",
33 params = { unit_id = unit_id }
34 }
35 end
38 execute.view{
39 module = "area",
40 view = "_list",
41 params = { areas_selector = areas_selector, title = title }
42 }

Impressum / About Us