Major changes in this commit over include work over several days but that was never...
[selectricity-live] / app / views / elections / detailed_results.rhtml
1 <p>The voting rolls for the last election are are follows.</p>
2
3 <h2>Voters</h2>
4 <table>
5 <% for voter in @voting_rolls.randomize %>
6 <tr>
7 <td><%= voter.email %></td>
8 </tr>
9 <% end %>
10 </table>
11
12 <h2>Votes (by Token)</h2>
13 <table border="1">
14 <tr>
15   <th rowspan="2">Token</th>
16   <th colspan="<%= @election.candidates.length %>">Rank of Candidates</th>
17 </tr>
18 <tr>
19 <% for candidate in @election.candidates.sort %>
20   <th><%= candidate %></th>
21 <% end %>
22 </tr>
23 <% for voter in @voting_rolls.randomize %>
24 <tr>
25 <td><%= voter.vote.token %></td>
26 <% for ranking in voter.vote %>
27 <td><%= ranking %></td>
28 <% end %>
29 </tr>
30 <% end %>
31 </table>

Benjamin Mako Hill || Want to submit a patch?