Added Sparklines controller and dependency, see README. Created method and table...
[selectricity-live] / app / views / quickvote / _defeats_list.rhtml
diff --git a/app/views/quickvote/_defeats_list.rhtml b/app/views/quickvote/_defeats_list.rhtml
deleted file mode 100644 (file)
index 248c294..0000000
+++ /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.<br />
-<% end -%>
-
-<% tied.each do |tie| -%>
-<%= names[tie[0]]%> tied with <%= names[tie[1]]%><br />
-<% end -%>

Benjamin Mako Hill || Want to submit a patch?