bsw@262: local unit_id = param.get("unit_id", atom.integer) bsw@262: bsw@241: local areas_selector = Area:build_selector{ active = true, unit_id = unit_id } bsw@197: bsw@247: local unit = Unit:by_id(unit_id) bsw@247: bsw@197: bsw@262: if config.feature_units_enabled then bsw@262: slot.put_into("title", unit.name) bsw@51: else bsw@51: slot.put_into("title", encode.html(config.app_title)) bsw@51: end bsw@51: bsw@197: bsw@69: if not app.session.member_id and config.motd_public then bsw@69: local help_text = config.motd_public bsw@69: ui.container{ bsw@69: attr = { class = "wiki motd" }, bsw@69: content = function() bsw@69: slot.put(format.wiki_text(help_text)) bsw@69: end bsw@69: } bsw@51: end bsw/jbe@0: bsw/jbe@4: util.help("area.list", _"Area list") bsw/jbe@4: bsw@249: if app.session.member_id then bsw@249: execute.view{ bsw@249: module = "delegation", bsw@249: view = "_show_box", bsw@249: params = { unit_id = unit_id } bsw@249: } bsw@249: end bsw@248: bsw/jbe@0: bsw/jbe@0: execute.view{ bsw/jbe@0: module = "area", bsw/jbe@0: view = "_list", bsw/jbe@0: params = { areas_selector = areas_selector } bsw/jbe@0: }