liquid_feedback_frontend
diff app/main/unit/_sidebar_whatcanido.lua @ 1716:0a3cce889a75
Different wording when logged in/not logged in
author | bsw |
---|---|
date | Mon Sep 27 12:43:08 2021 +0200 (2021-09-27) |
parents | 11cb89cd2a92 |
children | b27b327be05e |
line diff
1.1 --- a/app/main/unit/_sidebar_whatcanido.lua Mon Sep 27 12:41:07 2021 +0200 1.2 +++ b/app/main/unit/_sidebar_whatcanido.lua Mon Sep 27 12:43:08 2021 +0200 1.3 @@ -80,13 +80,15 @@ 1.4 1.5 else 1.6 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () 1.7 - ui.tag{ content = _"Login to participate" } 1.8 if not app.session.member_id then 1.9 + ui.tag{ content = _"Login to participate" } 1.10 ui.tag{ tag = "ul", content = function() 1.11 ui.tag{ tag = "li", content = function() 1.12 ui.link{ module = "index", view = "login", content = _"Login" } 1.13 end } 1.14 end } 1.15 + else 1.16 + ui.tag{ content = _"You are not entitled to vote in this unit" } 1.17 end 1.18 end } 1.19 end