liquid_feedback_frontend

annotate app/main/unit/_head.lua @ 527:4cee33ad5e16

Completed support for config.public_access = "full"
author bsw
date Fri May 18 19:44:41 2012 +0200 (2012-05-18)
parents 18cd8595459b
children 305329da1c75
rev   line source
bsw@525 1 local unit = param.get("unit", "table")
bsw@525 2
bsw@526 3 ui.container{ attr = { class = "unit_head" }, content = function()
bsw@525 4
bsw@526 5 execute.view{ module = "delegation", view = "_info", params = { unit = unit } }
bsw@525 6
bsw@526 7 ui.container{ attr = { class = "title" }, content = function()
bsw@526 8 if not config.single_unit_id then
bsw@526 9 ui.link{
bsw@526 10 module = "unit", view = "show", id = unit.id,
bsw@526 11 attr = { class = "unit_name" }, content = unit.name
bsw@526 12 }
bsw@526 13 else
bsw@526 14 ui.link{
bsw@526 15 module = "unit", view = "show", id = unit.id,
bsw@526 16 attr = { class = "unit_name" }, content = config.app_title
bsw@526 17 }
bsw@526 18 end
bsw@525 19 end }
bsw@525 20
bsw@526 21 ui.container{ attr = { class = "content" }, content = function()
bsw@526 22
bsw@526 23 if app.session.member_id and app.session.member:has_voting_right_for_unit_id(unit.id) then
bsw@526 24 ui.tag{ content = _"You have voting privileges" }
bsw@526 25 slot.put(" · ")
bsw@526 26 end
bsw@526 27
bsw@526 28 ui.tag{ content = "1234 Stimmberechtigte" }
bsw@526 29
bsw@526 30 end }
bsw@526 31
bsw@526 32 end }

Impressum / About Us