-<% 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 -%>
<!-- This table shows how many times each choice was ranked above the other,
with percentages-->
<table class="preftable">
</tr>
<% end -%>
</table>
-
+<br />
<!-- This table generates a margin of victory -->
<table class="preftable">
<% candidates.each do |victor| %>
</tr>
<% end -%>
</table>
+<% end -%>
+
<% end %></span>
</div>
+<% unless @election.election_method == method -%>
+<%= render :partial => 'result', :object => @results[method]%>
+<% end -%>
<%= render :partial => 'methodinfo_' + method,
- :object => @results[@election.election_method] %>
+ :object => @results[method] %>
</div>
<h2>Statistics</h2>
<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%>
+<br />
+<br />
+
+<h2>Voter Report</h2>
+
+<p><%= link_to "[View All Voters: Map and Other Info]", :controller => "quickvote",
+ :action => "list_voters", :id => @election.id %></p>
<div class="clear-div"></div>
-<div class="normal-header">
- <span class="header">Voter Report</span>
- <span class="subheader"></span>
-</div>
-
-<p><%= link_to "[View All Voters]", :controller => "quickvote", :action => "list_voters", :id => @election.id %></p>
-<br />
-
<!--
<%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
-->
ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ\r
\r
production:\r
- ABQIAAAA479zRK1hoNqMcKLTMuBcTRQ0mFvgRda1vOZQqJO6gQItognzGRQueA871M_O5_Q9Pd9xs4Ah4SNYTg\r
+ ABQIAAAA479zRK1hoNqMcKLTMuBcTRR0OKg4vZKrhw1amyo3djP_wIZS7BQ-fJouJ5VRd_fb2HO6KKzIMAVW6Q\r
}
.preftable th {
+ font-family: verdana,arial,helvetica,sans-serif;
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;
- color: #fff;
+ color: #FFFFFF;
}
.preftable td {