X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/8ae0d71896fa022dd80e5a5de993e1382564fcb1..4ae380231b08416a3ac3b6966d9dbc00a73fc3ca:/app/views/quickvote/_pref_table.rhtml?ds=inline diff --git a/app/views/quickvote/_pref_table.rhtml b/app/views/quickvote/_pref_table.rhtml index 32f5de4..4576a0f 100644 --- a/app/views/quickvote/_pref_table.rhtml +++ b/app/views/quickvote/_pref_table.rhtml @@ -1,4 +1,6 @@ <% candidates = @election.candidates.sort.collect {|candidate| candidate.id}-%> +<% voters = @election.voters.size %> + <% names = Hash.new -%> <% candidates.each do |candidate| -%> <%names[candidate] = Candidate.find(candidate).name -%> @@ -16,7 +18,11 @@ <% if winner == loser -%>