# HG changeset patch # User bsw # Date 1632737847 -7200 # Node ID c14da47b2357c84faf41a54db0ae8dd224ad7fe4 # Parent f2922928b9a7610188abe6b6aa8e684ce82283fe Changed order of sidebar elements diff -r f2922928b9a7 -r c14da47b2357 app/main/index/_sidebar_whatcanido.lua --- a/app/main/index/_sidebar_whatcanido.lua Mon Sep 27 12:13:12 2021 +0200 +++ b/app/main/index/_sidebar_whatcanido.lua Mon Sep 27 12:17:27 2021 +0200 @@ -30,6 +30,14 @@ end end } end } + if not config.voting_only and app.session.member.has_initiative_right then + ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() + ui.tag{ content = _"I want to start a new initiative" } + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () + ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } + end } + end } + end if app.session.member.has_voting_right then ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() ui.tag{ content = _"I want to vote" } @@ -46,14 +54,6 @@ end } end end - if not config.voting_only and app.session.member.has_initiative_right then - ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() - ui.tag{ content = _"I want to start a new initiative" } - ui.tag { tag = "ul", attr = { class = "ul" }, content = function () - ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } - end } - end } - end if not config.single_unit_id and not config.do_not_show_other_units_link then ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() ui.tag{ content = _"I want to take a look at other organizational units" }