liquid_feedback_frontend

annotate app/main/area/show.lua @ 526:18cd8595459b

Fixes for public access
author bsw
date Fri May 18 19:21:45 2012 +0200 (2012-05-18)
parents 63d6549cc00b
children 5ca9de94cb13
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@526 16 slot.select("head", function()
bsw@526 17 execute.view{ module = "area", view = "_head", params = { area = area } }
bsw@526 18 end)
bsw/jbe@0 19
bsw/jbe@0 20 ui.container{
bsw/jbe@0 21 attr = { class = "vertical"},
bsw/jbe@0 22 content = function()
bsw/jbe@0 23 ui.field.text{ value = area.description }
bsw/jbe@0 24 end
bsw/jbe@0 25 }
bsw/jbe@0 26
bsw@197 27
bsw@271 28
bsw/jbe@0 29
bsw@277 30 if app.session.member then
bsw@277 31 execute.view{
bsw@277 32 module = "area",
bsw@277 33 view = "show_tab",
bsw@277 34 params = { area = area }
bsw@277 35 }
bsw@277 36 else
bsw@277 37 execute.view{
bsw@277 38 module = "issue",
bsw@277 39 view = "_list",
bsw@277 40 params = {
bsw@277 41 issues_selector = area:get_reference_selector("issues"),
bsw@277 42 filter = cgi.params["filter"],
bsw@277 43 filter_voting = param.get("filter_voting"),
bsw@277 44 for_area_list = true
bsw@277 45 }
bsw@277 46 }
bsw@277 47 end

Impressum / About Us