liquid_feedback_frontend
diff app/main/initiative/_list_element.lua @ 273:7196685f9dd7
More optical enhancements, more repositioning
| author | bsw |
|---|---|
| date | Wed Feb 08 18:49:22 2012 +0100 (2012-02-08) |
| parents | 86988175dc89 |
| children | aec9df5b4cd3 |
line diff
1.1 --- a/app/main/initiative/_list_element.lua Wed Feb 08 00:55:17 2012 +0100 1.2 +++ b/app/main/initiative/_list_element.lua Wed Feb 08 18:49:22 2012 +0100 1.3 @@ -65,7 +65,7 @@ 1.4 records = { { a = 1} }, 1.5 columns = { 1.6 { 1.7 - field_attr = { style = "width: 4em; padding: 0;"}, 1.8 + field_attr = { style = "width: 3em; padding: 0; text-align: center;"}, 1.9 content = function() 1.10 if initiative.issue.accepted and initiative.issue.closed and initiative.issue.ranks_available or initiative.admitted == false then 1.11 ui.field.rank{ image_attr = { id = icon_name }, attr = { class = "rank" }, value = initiative.rank } 1.12 @@ -107,8 +107,8 @@ 1.13 else 1.14 slot.put(_"Counting of votes") 1.15 end 1.16 - elseif initiative.issue.population then 1.17 - local max_value = initiative.issue.population 1.18 + else 1.19 + local max_value = initiative.issue.population or 0 1.20 ui.bargraph{ 1.21 max_value = max_value, 1.22 width = 100, 1.23 @@ -120,8 +120,6 @@ 1.24 { color = "#eee", value = max_value - (initiative.supporter_count or 0) }, 1.25 } 1.26 } 1.27 - else 1.28 - slot.put(" ") 1.29 end 1.30 end 1.31 },