bsw@525: local unit = param.get("unit", "table") bsw@525: bsw@526: ui.container{ attr = { class = "unit_head" }, content = function() bsw@525: bsw@526: execute.view{ module = "delegation", view = "_info", params = { unit = unit } } bsw@525: bsw@526: ui.container{ attr = { class = "title" }, content = function() bsw@526: if not config.single_unit_id then bsw@526: ui.link{ bsw@526: module = "unit", view = "show", id = unit.id, bsw@526: attr = { class = "unit_name" }, content = unit.name bsw@526: } bsw@526: else bsw@526: ui.link{ bsw@526: module = "unit", view = "show", id = unit.id, bsw@526: attr = { class = "unit_name" }, content = config.app_title bsw@526: } bsw@526: end bsw@525: end } bsw@525: bsw@526: ui.container{ attr = { class = "content" }, content = function() bsw@526: bsw@526: if app.session.member_id and app.session.member:has_voting_right_for_unit_id(unit.id) then bsw@526: ui.tag{ content = _"You have voting privileges" } bsw@526: slot.put(" · ") bsw@526: end bsw@526: bsw@526: ui.tag{ content = "1234 Stimmberechtigte" } bsw@526: bsw@526: end } bsw@526: bsw@526: end }