liquid_feedback_frontend

annotate app/main/area/show.lua @ 240:910bbf6bc6b1

Show area delegations in area list
author Ingo Bormuth <mail@ibormuth.de>
date Tue Dec 27 03:34:35 2011 +0100 (2011-12-27)
parents c0835d707465
children 7ef1e03e4057
rev   line source
bsw@197 1 local area = Area:by_id(param.get_id())
bsw@197 2
bsw/jbe@0 3
jorges@103 4 app.html_title.title = area.name
jorges@103 5 app.html_title.subtitle = _("Area")
jorges@103 6
bsw@197 7 util.help("area.show")
bsw@197 8
bsw@197 9
bsw/jbe@52 10 if config.feature_rss_enabled then
bsw/jbe@52 11 util.html_rss_head{ title = _"Initiatives in this area (last created first)", module = "initiative", view = "list_rss", params = { area_id = area.id } }
bsw/jbe@52 12 util.html_rss_head{ title = _"Initiatives in this area (last updated first)", module = "initiative", view = "list_rss", params = { area_id = area.id } }
bsw/jbe@52 13 end
bsw/jbe@52 14
bsw@197 15
bsw@197 16 slot.put_into("title", encode.html(_("Area '#{name}'", { name = area.name })))
bsw@197 17
bsw/jbe@0 18
bsw/jbe@0 19 ui.container{
bsw/jbe@0 20 attr = { class = "vertical"},
bsw/jbe@0 21 content = function()
bsw/jbe@0 22 ui.field.text{ value = area.description }
bsw/jbe@0 23 end
bsw/jbe@0 24 }
bsw/jbe@0 25
bsw@197 26
bsw@51 27 if app.session.member_id then
bsw@197 28
bsw@51 29 slot.select("actions", function()
bsw@51 30 ui.link{
bsw@51 31 content = function()
bsw@51 32 ui.image{ static = "icons/16/folder_add.png" }
bsw@51 33 slot.put(_"Create new issue")
bsw@51 34 end,
bsw@51 35 module = "initiative",
bsw@51 36 view = "new",
bsw@51 37 params = { area_id = area.id }
bsw@51 38 }
bsw@51 39 end)
bsw/jbe@0 40
bsw@51 41 execute.view{
bsw@51 42 module = "membership",
bsw@51 43 view = "_show_box",
bsw@51 44 params = { area = area }
bsw@51 45 }
bsw/jbe@0 46
bsw@51 47 execute.view{
bsw@51 48 module = "delegation",
bsw@51 49 view = "_show_box",
bsw@51 50 params = { area_id = area.id }
bsw@51 51 }
bsw@51 52
bsw@51 53 end
bsw/jbe@0 54
bsw/jbe@19 55
bsw/jbe@19 56 execute.view{
bsw/jbe@19 57 module = "area",
bsw/jbe@19 58 view = "show_tab",
bsw/jbe@19 59 params = { area = area }
bsw/jbe@0 60 }
bsw/jbe@0 61

Impressum / About Us