X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/3d349b24ddccc0ce66b72de9d9fd4b4326d8fe75..25862916f9c97687bc1b30299fd9d544b0ba62ac:/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 -%>