X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/7ea8b24f8b002feba79f92e5333f1ec5c6e9f929..a16962155a3c3c6616bfe32c7216f3631836d38c:/app/views/quickvote/_defeats_list.rhtml?ds=sidebyside diff --git a/app/views/quickvote/_defeats_list.rhtml b/app/views/quickvote/_defeats_list.rhtml deleted file mode 100644 index 248c294..0000000 --- a/app/views/quickvote/_defeats_list.rhtml +++ /dev/null @@ -1,15 +0,0 @@ -<% victories, tied =@election.condorcet_result.list_defeats -%> -<%candidates = @election.candidates.sort.collect {|candidate| candidate.id}%> -<% names = Hash.new -%> -<% candidates.each do |candidate| -%> - <%names[candidate] = Candidate.find(candidate).name -%> -<% end -%> - -<% victories.each do |victory| -%> -<%= names[victory[0]] %> beat <%= names[victory[1]] %> by <%= victory[2]%> -votes.
-<% end -%> - -<% tied.each do |tie| -%> -<%= names[tie[0]]%> tied with <%= names[tie[1]]%>
-<% end -%>