X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/f2db874f06622e5b7422dabc8e17396708277c56..8f1a5a8b6f7f44d557e8772a6f1b7025b406bb4d:/app/views/quickvote/_pref_tables.rhtml?ds=sidebyside
diff --git a/app/views/quickvote/_pref_tables.rhtml b/app/views/quickvote/_pref_tables.rhtml
index 628ce55..588ec22 100644
--- a/app/views/quickvote/_pref_tables.rhtml
+++ b/app/views/quickvote/_pref_tables.rhtml
@@ -1,11 +1,15 @@
-<% candidates = @election.condorcet_result.ranked_candidates.flatten -%>
+<% candidates = @election.ssd_result.ranked_candidates.flatten -%>
<% voters = @election.voters.size %>
-<% matrix = @election.condorcet_result.matrix %>
-<% victories = @election.condorcet_result.victories_and_ties %>
+<% matrix = @election.ssd_result.matrix %>
+<% victories = @election.ssd_result.victories_and_ties %>
+<% if candidates.size <= 7 -%>
+Each number shows how many times the candidate on the left beat the
+matching candidate on the top. The Schulze/Condorcet winner is on the top of the
+left column.
|
<% candidates.each do |candidate| -%>
@@ -30,9 +34,12 @@
<% end -%>
-
+
+A simplification of the above data. The winner is on the left; each cell
+names the defeated candidate and the magnitude of the victory in parenthesis.
+
<% candidates.each do |victor| %>
<%=h @names[victor] %> |
@@ -49,3 +56,5 @@
<% end -%>
+<% end -%>
+