liquid_feedback_frontend
view app/main/area/show.lua @ 265:d37dce888225
More unit support
author | bsw |
---|---|
date | Tue Feb 07 18:40:08 2012 +0100 (2012-02-07) |
parents | 7ef1e03e4057 |
children | d13b27a37ad5 |
line source
1 local area = Area:by_id(param.get_id())
4 app.html_title.title = area.name
5 app.html_title.subtitle = _("Area")
7 util.help("area.show")
10 if config.feature_rss_enabled then
11 util.html_rss_head{ title = _"Initiatives in this area (last created first)", module = "initiative", view = "list_rss", params = { area_id = area.id } }
12 util.html_rss_head{ title = _"Initiatives in this area (last updated first)", module = "initiative", view = "list_rss", params = { area_id = area.id } }
13 end
16 slot.select("title", function()
17 if not config.single_unit_id then
18 ui.link{
19 content = area.unit.name,
20 module = "area",
21 view = "list",
22 params = { unit_id = area.unit_id }
23 }
24 slot.put(" · ")
25 end
27 ui.tag{ content = area.name }
29 end)
31 ui.container{
32 attr = { class = "vertical"},
33 content = function()
34 ui.field.text{ value = area.description }
35 end
36 }
39 if app.session.member_id then
41 slot.select("actions", function()
42 ui.link{
43 content = function()
44 ui.image{ static = "icons/16/folder_add.png" }
45 slot.put(_"Create new issue")
46 end,
47 module = "initiative",
48 view = "new",
49 params = { area_id = area.id }
50 }
51 end)
53 execute.view{
54 module = "membership",
55 view = "_show_box",
56 params = { area = area }
57 }
59 execute.view{
60 module = "delegation",
61 view = "_show_box",
62 params = { area_id = area.id }
63 }
65 end
68 execute.view{
69 module = "area",
70 view = "show_tab",
71 params = { area = area }
72 }