]> projects.mako.cc - selectricity-live/blob - app/views/quickvote/_victories_ties.rhtml
Add a bunch of fixes to HTML escaping, and a test case for it
[selectricity-live] / 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><%=h names[victor] %></th>
8         <% victories[victor].keys.each do |loser| %>
9         <td><%=h 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?