bsw@525: local unit = param.get("unit", "table") bsw@525: bsw@525: slot.select("head", function() bsw@525: bsw@525: ui.container{ attr = { class = "unit_head" }, content = function() bsw@525: bsw@525: execute.view{ module = "delegation", view = "_info", params = { unit = unit } } bsw@525: bsw@525: ui.container{ attr = { class = "title" }, content = function() bsw@525: if not config.single_unit_id then bsw@525: ui.link{ bsw@525: module = "unit", view = "show", id = unit.id, bsw@525: attr = { class = "unit_name" }, content = unit.name bsw@525: } bsw@525: else bsw@525: ui.link{ bsw@525: module = "unit", view = "show", id = unit.id, bsw@525: attr = { class = "unit_name" }, content = config.app_title bsw@525: } bsw@525: end bsw@525: end } bsw@525: bsw@525: ui.container{ attr = { class = "content" }, content = function() bsw@525: bsw@525: ui.tag{ content = "1234 Stimmberechtigte" } bsw@525: bsw@525: end } bsw@525: bsw@525: end } bsw@525: bsw@525: end )