more than 7 candidates because it would look ugly :(.
-<% candidates = @election.condorcet_result.ranked_candidates.flatten -%>
+<% candidates = @election.ssd_result.ranked_candidates.flatten -%>
<% voters = @election.voters.size %>
<% 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 -%>
<!-- This table shows how many times each choice was ranked above the other,
with percentages-->
<table class="preftable">
<!-- This table shows how many times each choice was ranked above the other,
with percentages-->
<table class="preftable">
</tr>
<% end -%>
</table>
</tr>
<% end -%>
</table>
<!-- This table generates a margin of victory -->
<table class="preftable">
<% candidates.each do |victor| %>
<!-- This table generates a margin of victory -->
<table class="preftable">
<% candidates.each do |victor| %>
</tr>
<% end -%>
</table>
</tr>
<% end -%>
</table>
+ font-family: verdana,arial,helvetica,sans-serif;
border-width: 2px;
border-color: #999999;
border-style: solid;
text-align: center;
font-weight: bold;
border-width: 2px;
border-color: #999999;
border-style: solid;
text-align: center;
font-weight: bold;
- padding: 5px 5px 5px 15px;
+ padding: 5px 5px 5px 5px;
background-color: #999999;
background-color: #999999;