liquid_feedback_frontend
changeset 335:4608babc79f2
Correctly interpret initiative.winner when showing approved information in initiative view
author | bsw |
---|---|
date | Tue Feb 28 18:46:10 2012 +0100 (2012-02-28) |
parents | 0ec49ed35954 |
children | 4cdf615ff358 |
files | app/main/initiative/_show.lua |
line diff
1.1 --- a/app/main/initiative/_show.lua Tue Feb 28 18:43:42 2012 +0100 1.2 +++ b/app/main/initiative/_show.lua Tue Feb 28 18:46:10 2012 +0100 1.3 @@ -148,7 +148,7 @@ 1.4 slot.put(_"No" .. ": <b>" .. tostring(initiative.negative_votes) .. perc(negative_votes, sum_votes) .. "</b>") 1.5 slot.put(" · ") 1.6 slot.put("<b>") 1.7 - if initiative.rank == 1 then 1.8 + if initiative.winner then 1.9 slot.put(_"Approved") 1.10 elseif initiative.rank then 1.11 slot.put(_("Not approved (rank #{rank})", { rank = initiative.rank }))