-<% 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 -%>
+
+<p>Each number in the table below shows how many times the candidate on
+the left beat the matching candidate on the top. The winner is on the
+top of the left column.</p>
<!-- This table shows how many times each choice was ranked above the other,
with percentages-->
+<div class="result_table">
<table class="preftable">
<tr>
<td></td>
</tr>
<% end -%>
</table>
-
+</div>
<!-- This table generates a margin of victory -->
+
+<p>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.</p>
+
+<div class="result_table">
<table class="preftable">
<% candidates.each do |victor| %>
<tr>
</tr>
<% end -%>
</table>
+</div>
+<% end -%>
+