]> projects.mako.cc - selectricity/blob - app/views/quickvote/_victories_ties.rhtml
7c3506a820f3d9037762b902e4f1a78f3692bbbd
[selectricity] / app / views / quickvote / _victories_ties.rhtml
1 <% victories, tied = @election.condorcet_result.victories_and_ties %>
2 <% names = @election.names_by_id %>
3 <% %>
4 <table class="voterbox">
5   <% victories.keys.each do |victor| %>
6   <tr>
7     <th><%= names[victor] %></th>
8         <% victories[victor].keys.each do |loser| %>
9         <td><%= names[loser] %> (<%= victories[victor][loser] %>)</td>
10         <% end -%>
11   </tr>
12   <% end -%>
13 </table>
14                 
15         
16         
17

Benjamin Mako Hill || Want to submit a patch?