liquid_feedback_frontend
diff app/main/initiative/_list_element.lua @ 715:21ae6ff8629a
Optical improvements
| author | bsw |
|---|---|
| date | Wed Jun 27 01:56:07 2012 +0200 (2012-06-27) |
| parents | 117a505fbe64 |
| children | a1ff5d08f0f4 |
line diff
1.1 --- a/app/main/initiative/_list_element.lua Wed Jun 27 00:29:13 2012 +0200 1.2 +++ b/app/main/initiative/_list_element.lua Wed Jun 27 01:56:07 2012 +0200 1.3 @@ -1,8 +1,13 @@ 1.4 local initiative = param.get("initiative", "table") 1.5 local selected = param.get("selected", atom.boolean) 1.6 1.7 +local class = "initiative" 1.8 1.9 -ui.container{ attr = { class = "initiative" }, content = function() 1.10 +if selected then 1.11 + class = class .. " selected" 1.12 +end 1.13 + 1.14 +ui.container{ attr = { class = class }, content = function() 1.15 1.16 ui.container{ attr = { class = "rank" }, content = function() 1.17 if initiative.issue.accepted and initiative.issue.closed 1.18 @@ -103,18 +108,6 @@ 1.19 if initiative.revoked then 1.20 link_class = "revoked" 1.21 end 1.22 - if selected then 1.23 - link_class = link_class .. " selected" 1.24 - end 1.25 - if initiative.is_supporter then 1.26 - link_class = link_class .. " supported" 1.27 - end 1.28 - if initiative.is_potential_supporter then 1.29 - link_class = link_class .. " potentially_supported" 1.30 - end 1.31 - if initiative.is_supporter_via_delegation then 1.32 - link_class = link_class .. " supported" 1.33 - end 1.34 ui.link{ 1.35 attr = { class = link_class }, 1.36 content = function()