liquid_feedback_frontend

diff app/main/area/_head.lua @ 622:cc542ac26edc

Fixes at area list and optical enhancements
author bsw
date Mon Jun 25 15:27:23 2012 +0200 (2012-06-25)
parents 7dc5ab12bfe3
children a3eb6ca34484
line diff
     1.1 --- a/app/main/area/_head.lua	Mon Jun 25 14:59:21 2012 +0200
     1.2 +++ b/app/main/area/_head.lua	Mon Jun 25 15:27:23 2012 +0200
     1.3 @@ -73,19 +73,18 @@
     1.4                }
     1.5              }
     1.6            }
     1.7 -
     1.8          end
     1.9 +        
    1.10 +        if app.session.member:has_voting_right_for_unit_id(area.unit_id) then
    1.11  
    1.12 -        slot.put(" · ")
    1.13 -        if area.delegation_info.own_delegation_scope ~= "area" then
    1.14 -          ui.link{ text = _"Delegate area", module = "delegation", view = "show", params = { area_id = area.id } }
    1.15 -        else
    1.16 -          ui.link{ text = _"Change area delegation", module = "delegation", view = "show", params = { area_id = area.id } }
    1.17 -        end
    1.18 -        slot.put(" · ")
    1.19 +          slot.put(" · ")
    1.20 +          if area.delegation_info.own_delegation_scope ~= "area" then
    1.21 +            ui.link{ text = _"Delegate area", module = "delegation", view = "show", params = { area_id = area.id } }
    1.22 +          else
    1.23 +            ui.link{ text = _"Change area delegation", module = "delegation", view = "show", params = { area_id = area.id } }
    1.24 +          end
    1.25 +          slot.put(" · ")
    1.26  
    1.27 -        -- create new issue
    1.28 -        if app.session.member:has_voting_right_for_unit_id(area.unit_id) then
    1.29            ui.link{
    1.30              content = function()
    1.31                slot.put(_"Create new issue")

Impressum / About Us