X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/8ae0d71896fa022dd80e5a5de993e1382564fcb1..f7761282a6a0744caadfa6ddfb44f09d68c9f928:/app/views/quickvote/_pref_table.rhtml?ds=sidebyside 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 -%>