liquid_feedback_frontend
diff app/main/unit/_sidebar_whatcanido.lua @ 1713:58e1e8d6f596
Changed order of sidebar elements
| author | bsw | 
|---|---|
| date | Mon Sep 27 12:20:33 2021 +0200 (2021-09-27) | 
| parents | 52545dba4205 | 
| children | 11cb89cd2a92 | 
   line diff
1.1 --- a/app/main/unit/_sidebar_whatcanido.lua Mon Sep 27 12:17:27 2021 +0200 1.2 +++ b/app/main/unit/_sidebar_whatcanido.lua Mon Sep 27 12:20:33 2021 +0200 1.3 @@ -61,7 +61,14 @@ 1.4 end 1.5 end } 1.6 end 1.7 - 1.8 + if not config.voting_only and app.session.member_id and app.session.member:has_initiative_right_for_unit_id ( unit.id ) then 1.9 + ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.10 + ui.tag{ content = _"I want to start a new initiative" } 1.11 + ui.tag{ tag = "ul", attr = { class = "ul" }, content = function () 1.12 + ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } 1.13 + end } 1.14 + end } 1.15 + end 1.16 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.17 ui.tag{ 1.18 content = _"I want to vote" 1.19 @@ -83,16 +90,5 @@ 1.20 end 1.21 end } 1.22 end 1.23 - 1.24 - if not config.voting_only and app.session.member_id and app.session.member:has_initiative_right_for_unit_id ( unit.id ) then 1.25 - ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.26 - ui.tag{ content = _"I want to start a new initiative" } 1.27 - ui.tag{ tag = "ul", attr = { class = "ul" }, content = function () 1.28 - ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } 1.29 - end } 1.30 - end } 1.31 - end 1.32 - 1.33 end } 1.34 - 1.35 end }