liquid_feedback_frontend

diff app/main/issue/_sidebar_whatcanido.lua @ 1135:abee3e49cd44

Initiatives cannot be updated during verification phase
author bsw
date Tue Jan 27 12:07:58 2015 +0100 (2015-01-27)
parents 701a5cf6b067
children e4df22c3a69f
line diff
     1.1 --- a/app/main/issue/_sidebar_whatcanido.lua	Thu Jan 08 22:04:44 2015 +0100
     1.2 +++ b/app/main/issue/_sidebar_whatcanido.lua	Tue Jan 27 12:07:58 2015 +0100
     1.3 @@ -76,36 +76,40 @@
     1.4          ui.tag { content = _"You are initiator of this initiative" }
     1.5        end }
     1.6        ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
     1.7 -        ui.tag { tag = "li", content = function ()
     1.8 -          ui.link{
     1.9 -            module = "draft", view = "new",
    1.10 -            params = { initiative_id = initiative.id },
    1.11 -            content = _"edit proposal and/or reasons"
    1.12 -          }
    1.13 -        end }
    1.14 -        ui.tag { tag = "li", content = function ()
    1.15 -          ui.link{
    1.16 -            attr = { class = "action" },
    1.17 -            module = "initiative", view = "add_initiator",
    1.18 -            params = { initiative_id = initiative.id },
    1.19 -            content = _"invite another initiator"
    1.20 -          }
    1.21 -        end }
    1.22 -        if #initiative.initiators > 1 then
    1.23 +        if issue.half_frozen then
    1.24 +          ui.tag { tag = "li", content = _"this issue is in verification phase, therefore the initiative text cannot be updated anymore" }
    1.25 +        else
    1.26 +          ui.tag { tag = "li", content = function ()
    1.27 +            ui.link{
    1.28 +              module = "draft", view = "new",
    1.29 +              params = { initiative_id = initiative.id },
    1.30 +              content = _"edit proposal and/or reasons"
    1.31 +            }
    1.32 +          end }
    1.33            ui.tag { tag = "li", content = function ()
    1.34              ui.link{
    1.35 -              module = "initiative", view = "remove_initiator",
    1.36 +              attr = { class = "action" },
    1.37 +              module = "initiative", view = "add_initiator",
    1.38                params = { initiative_id = initiative.id },
    1.39 -              content = _"remove an initiator"
    1.40 +              content = _"invite another initiator"
    1.41 +            }
    1.42 +          end }
    1.43 +          if #initiative.initiators > 1 then
    1.44 +            ui.tag { tag = "li", content = function ()
    1.45 +              ui.link{
    1.46 +                module = "initiative", view = "remove_initiator",
    1.47 +                params = { initiative_id = initiative.id },
    1.48 +                content = _"remove an initiator"
    1.49 +              }
    1.50 +            end }
    1.51 +          end
    1.52 +          ui.tag { tag = "li", content = function ()
    1.53 +            ui.link{
    1.54 +              module = "initiative", view = "revoke", id = initiative.id,
    1.55 +              content = _"revoke initiative"
    1.56              }
    1.57            end }
    1.58          end
    1.59 -        ui.tag { tag = "li", content = function ()
    1.60 -          ui.link{
    1.61 -            module = "initiative", view = "revoke", id = initiative.id,
    1.62 -            content = _"revoke initiative"
    1.63 -          }
    1.64 -        end }
    1.65        end }
    1.66      end }
    1.67    end

Impressum / About Us