1 <% @votes = @election.votes.select {|v| v.confirmed? }.shuffle %>
2 <% @voters = @votes.collect {|v| v.voter}.shuffle %>
4 <div id="title-header">
5 <span class="header">Details</span>
6 <span class="subheader"><%= @election.name %></span>
9 <p>This page contains information useful for auditing elections and
10 verifying that votes were tabulated correctly.</p>
12 <p>The following invididuals (in random order) voted in this
16 <%- @voters.each do |voter| -%>
17 <li><% if voter.email %>
19 <% elsif @election.kiosk? %>
27 <p>The following table lists the votes cast in random order.</p>
29 <p><% if @election.verifiable %>The column marked <em>Verification
30 Token</em> lists tokens that were given to voters at the time of voting.
31 Voters can check to see that the vote that corresponds to their token
32 was recorded correctly.<% end %> The column marked <em>Vote</em> lists
33 the candidates in order of the voter's preference. To read these votes,
34 refer to the key below.</p>
36 <table class="preftable">
39 <% if @election.verifiable %><th>Verification Token</th><% end %>
41 <%- @votes.each_with_index do |vote, i| -%>
44 <% if @election.verifiable %><td><%= vote.token %></td><% end %>
45 <td><%= vote.votestring%></td>
50 <p style="margin-top: 1em;">Key:</p>
52 <table class="preftable">
56 <%- @election.candidates.sort.each_with_index do |c, i| -%>
58 <td><%= (i + 65).chr %></td>
59 <td><%= c.name %></td>