liquid_feedback_frontend

diff app/main/unit/_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/unit/_sidebar_whatcanido.lua	Thu Feb 03 15:54:23 2022 +0100
     1.2 +++ b/app/main/unit/_sidebar_whatcanido.lua	Thu Feb 03 15:57:22 2022 +0100
     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 @@ -73,26 +80,17 @@
    1.20  
    1.21      else
    1.22        ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function ()
    1.23 -        ui.tag{ content = _"You are not entitled to vote in this unit" }
    1.24          if not app.session.member_id then
    1.25 +          ui.tag{ content = _"Login to participate" }
    1.26            ui.tag{ tag = "ul", content = function()
    1.27              ui.tag{ tag = "li", content = function()
    1.28 -              ui.link{ module = "index", view = "login", content = _"Login" }
    1.29 +              ui.link{ module = "index", view = "login", content = _"Login [button]" }
    1.30              end }
    1.31            end }
    1.32 +        else
    1.33 +          ui.tag{ content = _"You are not entitled to vote in this unit" }
    1.34          end
    1.35        end }
    1.36      end
    1.37 -    
    1.38 -    if not config.voting_only and app.session.member_id and app.session.member:has_initiative_right_for_unit_id ( unit.id ) then
    1.39 -      ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
    1.40 -        ui.tag{ content = _"I want to start a new initiative" }
    1.41 -        ui.tag{ tag = "ul", attr = { class = "ul" }, content = function ()
    1.42 -          ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." }
    1.43 -        end } 
    1.44 -      end }
    1.45 -    end
    1.46 -   
    1.47    end }
    1.48 -  
    1.49  end }

Impressum / About Us