liquid_feedback_frontend

diff app/main/supporter/_show_box.lua @ 280:808269b7f41c

More repositioning and optical enhancements
author bsw
date Thu Feb 16 14:08:55 2012 +0100 (2012-02-16)
parents fecd4c13054a
children b77e6a17ca77
line diff
     1.1 --- a/app/main/supporter/_show_box.lua	Thu Feb 16 14:08:43 2012 +0100
     1.2 +++ b/app/main/supporter/_show_box.lua	Thu Feb 16 14:08:55 2012 +0100
     1.3 @@ -109,8 +109,33 @@
     1.4              id     = initiative.id
     1.5            }
     1.6          end
     1.7 +        if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
     1.8 +          ui.link{
     1.9 +            content = function()
    1.10 +              ui.image{ static = "icons/16/script_add.png" }
    1.11 +              slot.put(_"Edit draft")
    1.12 +            end,
    1.13 +            module = "draft",
    1.14 +            view = "new",
    1.15 +            params = { initiative_id = initiative.id }
    1.16 +          }
    1.17 +        end
    1.18 +
    1.19 +        if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then
    1.20 +          ui.link{
    1.21 +            content = function()
    1.22 +              ui.image{ static = "icons/16/script_delete.png" }
    1.23 +              slot.put(_"Revoke initiative")
    1.24 +            end,
    1.25 +            module = "initiative",
    1.26 +            view = "revoke",
    1.27 +            id = initiative.id
    1.28 +          }
    1.29 +        end
    1.30        end
    1.31      }
    1.32 +
    1.33 +    
    1.34      slot.put("<div style='clear: left;'></div>")
    1.35    end
    1.36  }

Impressum / About Us