# HG changeset patch
# User bsw
# Date 1330451170 -3600
# Node ID 4608babc79f2c249d968a1311dc13c012481b18c
# Parent 0ec49ed35954ad51f5ac316adac6aa4d69a8a5b7
Correctly interpret initiative.winner when showing approved information in initiative view
diff -r 0ec49ed35954 -r 4608babc79f2 app/main/initiative/_show.lua
--- a/app/main/initiative/_show.lua Tue Feb 28 18:43:42 2012 +0100
+++ b/app/main/initiative/_show.lua Tue Feb 28 18:46:10 2012 +0100
@@ -148,7 +148,7 @@
slot.put(_"No" .. ": " .. tostring(initiative.negative_votes) .. perc(negative_votes, sum_votes) .. "")
slot.put(" · ")
slot.put("")
- if initiative.rank == 1 then
+ if initiative.winner then
slot.put(_"Approved")
elseif initiative.rank then
slot.put(_("Not approved (rank #{rank})", { rank = initiative.rank }))