liquid_feedback_frontend

annotate app/main/unit/_head.lua @ 528:305329da1c75

Wording and css changes
author bsw
date Fri May 18 21:03:10 2012 +0200 (2012-05-18)
parents 18cd8595459b
children 5ca9de94cb13
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@528 24 ui.tag{ content = _"You have voting privileges for this unit" }
bsw@526 25 end
bsw@526 26 end }
bsw@526 27
bsw@526 28 end }

Impressum / About Us