liquid_feedback_frontend
view app/main/area/list.lua @ 260:743194cbdd89
Removed current unit chooser
author | bsw |
---|---|
date | Tue Feb 07 17:31:42 2012 +0100 (2012-02-07) |
parents | 52b125fada5b |
children | 7ef1e03e4057 |
line source
1 -- TODO support multiple units
2 local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
4 local unit = Unit:by_id(unit_id)
7 if app.session.member_id then
8 slot.put_into("title", _("Area list of unit '#{unit_name}'", { unit_name = unit.name }))
9 else
10 slot.put_into("title", encode.html(config.app_title))
11 end
14 if not app.session.member_id and config.motd_public then
15 local help_text = config.motd_public
16 ui.container{
17 attr = { class = "wiki motd" },
18 content = function()
19 slot.put(format.wiki_text(help_text))
20 end
21 }
22 end
24 util.help("area.list", _"Area list")
26 if app.session.member_id then
27 execute.view{
28 module = "delegation",
29 view = "_show_box",
30 params = { unit_id = unit_id }
31 }
32 end
35 execute.view{
36 module = "area",
37 view = "_list",
38 params = { areas_selector = areas_selector }
39 }