liquid_feedback_frontend
diff app/main/lf2/interest.lua @ 217:73dbc9e2bfd4
Cummulative patch for enhancements at next generation frontend
author | bsw |
---|---|
date | Sat Mar 12 19:22:50 2011 +0100 (2011-03-12) |
parents | 4f6e6b213fb8 |
children | 979f456672c5 |
line diff
1.1 --- a/app/main/lf2/interest.lua Mon Mar 07 12:15:22 2011 +0100 1.2 +++ b/app/main/lf2/interest.lua Sat Mar 12 19:22:50 2011 +0100 1.3 @@ -90,16 +90,21 @@ 1.4 end } end } 1.5 end 1.6 1.7 - ui.box_row{ class = "subhead", content = function() ui.box_col{ class = "head", content = _"Statement about issue" } end } 1.8 - 1.9 - ui.box_row{ class = "subhead", content = function() ui.box_col{ class = "head", content = _"Supported initiatives" } end } 1.10 - execute.view{ module = "lf2", view = "_initiatives", params = { initiatives = supported_initiatives } } 1.11 - 1.12 - ui.box_row{ class = "subhead", content = function() ui.box_col{ class = "head", content = _"Incoming delegations" } end } 1.13 - ui.box_row{ content = function() ui.box_col{ content = function() 1.14 - execute.view{ module = "lf2", view = "_avatars", params = { members = issue.trusters, size = "small", issue_id = issue.id } } 1.15 - end } end } 1.16 - 1.17 + if statement then 1.18 + ui.box_row{ class = "subhead", content = function() ui.box_col{ class = "head", content = _"Statement about issue" } end } 1.19 + end 1.20 + 1.21 + if #supported_initiatives > 0 then 1.22 + ui.box_row{ class = "subhead", content = function() ui.box_col{ class = "head", content = _"Supported initiatives" } end } 1.23 + execute.view{ module = "lf2", view = "_initiatives", params = { initiatives = supported_initiatives } } 1.24 + end 1.25 + 1.26 + if #(issue.trusters) > 0 then 1.27 + ui.box_row{ class = "subhead", content = function() ui.box_col{ class = "head", content = _"Incoming delegations" } end } 1.28 + ui.box_row{ content = function() ui.box_col{ content = function() 1.29 + execute.view{ module = "lf2", view = "_avatars", params = { members = issue.trusters, size = "small", issue_id = issue.id } } 1.30 + end } end } 1.31 + end 1.32 1.33 end } 1.34