liquid_feedback_frontend

annotate app/main/area/show.lua @ 273:7196685f9dd7

More optical enhancements, more repositioning
author bsw
date Wed Feb 08 18:49:22 2012 +0100 (2012-02-08)
parents d13b27a37ad5
children bde068b37608
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@265 16 slot.select("title", function()
bsw@271 17 ui.tag{ content = area.name }
bsw@271 18
bsw@265 19 if not config.single_unit_id then
bsw@271 20 slot.put(" · ")
bsw@265 21 ui.link{
bsw@265 22 content = area.unit.name,
bsw@265 23 module = "area",
bsw@265 24 view = "list",
bsw@265 25 params = { unit_id = area.unit_id }
bsw@265 26 }
bsw@265 27 end
bsw@197 28
bsw@265 29
bsw@265 30 end)
bsw/jbe@0 31
bsw/jbe@0 32 ui.container{
bsw/jbe@0 33 attr = { class = "vertical"},
bsw/jbe@0 34 content = function()
bsw/jbe@0 35 ui.field.text{ value = area.description }
bsw/jbe@0 36 end
bsw/jbe@0 37 }
bsw/jbe@0 38
bsw@197 39
bsw@51 40 if app.session.member_id then
bsw@271 41 execute.view{
bsw@271 42 module = "membership",
bsw@271 43 view = "_show_box",
bsw@271 44 params = { area = area }
bsw@271 45 }
bsw@271 46
bsw@271 47 execute.view{
bsw@271 48 module = "delegation",
bsw@271 49 view = "_show_box",
bsw@271 50 params = { area_id = area.id }
bsw@271 51 }
bsw@197 52
bsw@51 53 slot.select("actions", function()
bsw@51 54 ui.link{
bsw@51 55 content = function()
bsw@51 56 ui.image{ static = "icons/16/folder_add.png" }
bsw@51 57 slot.put(_"Create new issue")
bsw@51 58 end,
bsw@51 59 module = "initiative",
bsw@51 60 view = "new",
bsw@51 61 params = { area_id = area.id }
bsw@51 62 }
bsw@51 63 end)
bsw/jbe@0 64
bsw@51 65
bsw@51 66 end
bsw/jbe@0 67
bsw/jbe@19 68
bsw/jbe@19 69 execute.view{
bsw/jbe@19 70 module = "area",
bsw/jbe@19 71 view = "show_tab",
bsw/jbe@19 72 params = { area = area }
bsw/jbe@0 73 }
bsw/jbe@0 74

Impressum / About Us