liquid_feedback_frontend
diff app/main/index/_sidebar_whatcanido.lua @ 1843:b01d9920371b
merge
author | jbe |
---|---|
date | Thu Feb 03 15:57:22 2022 +0100 (2022-02-03) |
parents | b27b327be05e |
children |
line diff
1.1 --- a/app/main/index/_sidebar_whatcanido.lua Thu Feb 03 15:54:23 2022 +0100 1.2 +++ b/app/main/index/_sidebar_whatcanido.lua Thu Feb 03 15:57:22 2022 +0100 1.3 @@ -30,6 +30,14 @@ 1.4 end 1.5 end } 1.6 end } 1.7 + if not config.voting_only and app.session.member.has_initiative_right then 1.8 + ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.9 + ui.tag{ content = _"I want to start a new initiative" } 1.10 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.11 + ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } 1.12 + end } 1.13 + end } 1.14 + end 1.15 if app.session.member.has_voting_right then 1.16 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.17 ui.tag{ content = _"I want to vote" } 1.18 @@ -46,15 +54,7 @@ 1.19 end } 1.20 end 1.21 end 1.22 - if not config.voting_only and app.session.member.has_initiative_right then 1.23 - ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.24 - ui.tag{ content = _"I want to start a new initiative" } 1.25 - ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.26 - ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } 1.27 - end } 1.28 - end } 1.29 - end 1.30 - if not config.single_unit_id then 1.31 + if not config.single_unit_id and not config.do_not_show_other_units_link then 1.32 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.33 ui.tag{ content = _"I want to take a look at other organizational units" } 1.34 ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.35 @@ -83,10 +83,10 @@ 1.36 end 1.37 if not app.session.member then 1.38 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () 1.39 - ui.tag{ content = _"You are not entitled to vote in this unit" } 1.40 + ui.tag{ content = _"Login to participate" } 1.41 ui.tag{ tag = "ul", content = function() 1.42 ui.tag{ tag = "li", content = function() 1.43 - ui.link{ module = "index", view = "login", content = _"Login" } 1.44 + ui.link{ module = "index", view = "login", content = _"Login [button]" } 1.45 end } 1.46 end } 1.47 end } 1.48 @@ -94,22 +94,26 @@ 1.49 if not config.voting_only then 1.50 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.51 ui.tag{ content = _"I want to learn more about LiquidFeedback" } 1.52 - ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.53 - ui.tag { tag = "li", content = function() 1.54 - ui.link { module = "help", view = "introduction", content = _"structured discussion" } 1.55 - end } 1.56 - ui.tag { tag = "li", content = function() 1.57 - ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" } 1.58 - end } 1.59 - if not config.disable_delegations then 1.60 + if config.quick_guide and config.quick_guide.links then 1.61 + ui.container{ content = config.quick_guide.links } 1.62 + else 1.63 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.64 + ui.tag { tag = "li", content = function() 1.65 + ui.link { module = "help", view = "introduction", content = _"structured discussion" } 1.66 + end } 1.67 ui.tag { tag = "li", content = function() 1.68 - ui.link { module = "help", view = "introduction", content = _"vote delegation" } 1.69 + ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" } 1.70 end } 1.71 - end 1.72 - ui.tag { tag = "li", content = function() 1.73 - ui.link { module = "help", view = "introduction", content = _"preference voting" } 1.74 - end } 1.75 - end } 1.76 + if not config.disable_delegations then 1.77 + ui.tag { tag = "li", content = function() 1.78 + ui.link { module = "help", view = "introduction", content = _"vote delegation" } 1.79 + end } 1.80 + end 1.81 + ui.tag { tag = "li", content = function() 1.82 + ui.link { module = "help", view = "introduction", content = _"preference voting" } 1.83 + end } 1.84 + end } 1.85 + end 1.86 end } 1.87 end 1.88 end }