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@265: slot.select("title", function() bsw@265: if not config.single_unit_id then bsw@265: ui.link{ bsw@265: content = area.unit.name, bsw@265: module = "area", bsw@265: view = "list", bsw@265: params = { unit_id = area.unit_id } bsw@265: } bsw@265: slot.put(" · ") bsw@265: end bsw@197: bsw@265: ui.tag{ content = area.name } bsw@265: bsw@265: 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@51: if app.session.member_id then bsw@197: bsw@51: slot.select("actions", function() bsw@51: ui.link{ bsw@51: content = function() bsw@51: ui.image{ static = "icons/16/folder_add.png" } bsw@51: slot.put(_"Create new issue") bsw@51: end, bsw@51: module = "initiative", bsw@51: view = "new", bsw@51: params = { area_id = area.id } bsw@51: } bsw@51: end) bsw/jbe@0: bsw@51: execute.view{ bsw@51: module = "membership", bsw@51: view = "_show_box", bsw@51: params = { area = area } bsw@51: } bsw/jbe@0: bsw@51: execute.view{ bsw@51: module = "delegation", bsw@51: view = "_show_box", bsw@51: params = { area_id = area.id } bsw@51: } bsw@51: bsw@51: end bsw/jbe@0: bsw/jbe@19: bsw/jbe@19: execute.view{ bsw/jbe@19: module = "area", bsw/jbe@19: view = "show_tab", bsw/jbe@19: params = { area = area } bsw/jbe@0: } bsw/jbe@0: