liquid_feedback_frontend
diff app/main/issue/_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/issue/_sidebar_whatcanido.lua Thu Feb 03 15:54:23 2022 +0100 1.2 +++ b/app/main/issue/_sidebar_whatcanido.lua Thu Feb 03 15:57:22 2022 +0100 1.3 @@ -603,12 +603,16 @@ 1.4 1.5 if not app.session.member or not privileged_to_vote then 1.6 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () 1.7 - ui.tag{ content = _"You are not entitled to vote in this unit" } 1.8 - ui.tag{ tag = "ul", content = function() 1.9 - ui.tag{ tag = "li", content = function() 1.10 - ui.link{ module = "index", view = "login", content = _"Login" } 1.11 + if not app.session.member_id then 1.12 + ui.tag{ content = _"Login to participate" } 1.13 + ui.tag{ tag = "ul", content = function() 1.14 + ui.tag{ tag = "li", content = function() 1.15 + ui.link{ module = "index", view = "login", content = _"Login [button]" } 1.16 + end } 1.17 end } 1.18 - end } 1.19 + else 1.20 + ui.tag{ content = _"You are not entitled to vote in this unit" } 1.21 + end 1.22 end } 1.23 end 1.24