bsw@197: local area = Area:by_id(param.get_id()) bsw@197: bsw/jbe@0: jorges@103: app.html_title.title = area.name jorges@103: app.html_title.subtitle = _("Area") jorges@103: bsw@197: util.help("area.show") bsw@197: bsw@197: bsw/jbe@52: if config.feature_rss_enabled then bsw/jbe@52: 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: 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: end bsw/jbe@52: bsw@197: bsw@526: slot.select("head", function() bsw@529: execute.view{ module = "area", view = "_head", params = { area = area, show_content = true } } bsw@526: end) bsw/jbe@0: bsw/jbe@0: ui.container{ bsw/jbe@0: attr = { class = "vertical"}, bsw/jbe@0: content = function() bsw/jbe@0: ui.field.text{ value = area.description } bsw/jbe@0: end bsw/jbe@0: } bsw/jbe@0: bsw@197: bsw@271: bsw/jbe@0: bsw@277: if app.session.member then bsw@277: execute.view{ bsw@277: module = "area", bsw@277: view = "show_tab", bsw@277: params = { area = area } bsw@277: } bsw@277: else bsw@277: execute.view{ bsw@277: module = "issue", bsw@277: view = "_list", bsw@277: params = { bsw@277: issues_selector = area:get_reference_selector("issues"), bsw@277: filter = cgi.params["filter"], bsw@277: filter_voting = param.get("filter_voting"), bsw@277: for_area_list = true bsw@277: } bsw@277: } bsw@277: end