liquid_feedback_frontend
diff app/main/initiative/show_support.lua @ 277:bde068b37608
Dropdown boxes except of delegation box removed, optical enhancements and repositioning of elements
| author | bsw |
|---|---|
| date | Mon Feb 13 00:16:42 2012 +0100 (2012-02-13) |
| parents | fc14e76afe31 |
| children |
line diff
1.1 --- a/app/main/initiative/show_support.lua Sun Feb 12 20:03:26 2012 +0100 1.2 +++ b/app/main/initiative/show_support.lua Mon Feb 13 00:16:42 2012 +0100 1.3 @@ -17,9 +17,6 @@ 1.4 local initiative = param.get("initiative", "table") 1.5 local supporter = Supporter:by_pk(initiative.id, app.session.member.id) 1.6 1.7 - local unique_string = multirand.string(16, '0123456789abcdef') 1.8 - 1.9 - 1.10 local partial = { 1.11 routing = { 1.12 default = { 1.13 @@ -44,7 +41,7 @@ 1.14 if not initiative.issue.fully_frozen and not initiative.issue.closed then 1.15 if supporter then 1.16 if not supporter:has_critical_opinion() then 1.17 - ui.tag{ attr = { class = "supporter" }, content = function() 1.18 + ui.container{ attr = { class = "supporter" }, content = function() 1.19 ui.image{ 1.20 static = "icons/16/thumb_up_green.png" 1.21 } 1.22 @@ -58,9 +55,9 @@ 1.23 slot.put(_"Your are potential supporter") 1.24 end } 1.25 end 1.26 - slot.put(" · ") 1.27 ui.link{ 1.28 - text = _"Remove my support from this initiative", 1.29 + image = { static = "icons/16/cross.png" }, 1.30 + text = _"Withdraw support", 1.31 module = "initiative", 1.32 action = "remove_support", 1.33 id = initiative.id, 1.34 @@ -73,6 +70,7 @@ 1.35 local params = param.get_all_cgi() 1.36 params.dyn = nil 1.37 ui.link{ 1.38 + image = { static = "icons/16/thumb_up_green.png" }, 1.39 text = _"Support this initiative", 1.40 module = "initiative", 1.41 action = "add_support", 1.42 @@ -104,6 +102,7 @@ 1.43 end 1.44 if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then 1.45 ui.link{ 1.46 + image = { static = "icons/16/comments.png" }, 1.47 text = _"change discussion URL", 1.48 module = "initiative", 1.49 view = "edit",