liquid_feedback_frontend

annotate app/main/area/show.lua @ 525:63d6549cc00b

Delegation chain preview improved, better visualisation of current context, code cleanup
author bsw
date Fri May 18 19:07:07 2012 +0200 (2012-05-18)
parents 22e4e26717ac
children 18cd8595459b
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@525 16 execute.view{ module = "area", view = "_head", params = { area = area } }
bsw/jbe@0 17
bsw/jbe@0 18 ui.container{
bsw/jbe@0 19 attr = { class = "vertical"},
bsw/jbe@0 20 content = function()
bsw/jbe@0 21 ui.field.text{ value = area.description }
bsw/jbe@0 22 end
bsw/jbe@0 23 }
bsw/jbe@0 24
bsw@197 25
bsw@271 26
bsw/jbe@0 27
bsw@277 28 if app.session.member then
bsw@277 29 execute.view{
bsw@277 30 module = "area",
bsw@277 31 view = "show_tab",
bsw@277 32 params = { area = area }
bsw@277 33 }
bsw@277 34 else
bsw@277 35 execute.view{
bsw@277 36 module = "issue",
bsw@277 37 view = "_list",
bsw@277 38 params = {
bsw@277 39 issues_selector = area:get_reference_selector("issues"),
bsw@277 40 filter = cgi.params["filter"],
bsw@277 41 filter_voting = param.get("filter_voting"),
bsw@277 42 for_area_list = true
bsw@277 43 }
bsw@277 44 }
bsw@277 45 end

Impressum / About Us