liquid_feedback_frontend

view app/main/area/show.lua @ 248:e3613831cd1e

Migrate global delegation to unit level
author bsw
date Fri Dec 30 03:13:10 2011 +0100 (2011-12-30)
parents c0835d707465
children 7ef1e03e4057
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.put_into("title", encode.html(_("Area '#{name}'", { name = area.name })))
19 ui.container{
20 attr = { class = "vertical"},
21 content = function()
22 ui.field.text{ value = area.description }
23 end
24 }
27 if app.session.member_id then
29 slot.select("actions", function()
30 ui.link{
31 content = function()
32 ui.image{ static = "icons/16/folder_add.png" }
33 slot.put(_"Create new issue")
34 end,
35 module = "initiative",
36 view = "new",
37 params = { area_id = area.id }
38 }
39 end)
41 execute.view{
42 module = "membership",
43 view = "_show_box",
44 params = { area = area }
45 }
47 execute.view{
48 module = "delegation",
49 view = "_show_box",
50 params = { area_id = area.id }
51 }
53 end
56 execute.view{
57 module = "area",
58 view = "show_tab",
59 params = { area = area }
60 }

Impressum / About Us