<% @votes = @election.votes.select {|v| v.confirmed? }.shuffle %> <% @voters = @votes.collect {|v| v.voter}.shuffle %>
Details <%= @election.name %>

This page contains information useful for auditing elections and verifying that votes were tabulated correctly.

The following invididuals (in random order) voted in this election:

    <%- @voters.each do |voter| -%>
  1. <% if voter.email %> <%= voter.email %> <% elsif @election.kiosk? %> Kiosk Voter <% else %> Unknown voter <% end %>
  2. <%- end -%>

The following table lists the votes cast in random order.

<% if @election.verifiable %>The column marked Verification Token lists tokens that were given to voters at the time of voting. Voters can check to see that the vote that corresponds to their token was recorded correctly.<% end %> The column marked Vote lists the candidates in order of the voter's preference. To read these votes, refer to the key below.

<% if @election.verifiable %><% end %> <%- @votes.each_with_index do |vote, i| -%> <% if @election.verifiable %><% end %> <%- end -%>
Verification TokenVote
<%= i + 1 %><%= vote.token %><%= vote.votestring%>

Key:

<%- @election.candidates.sort.each_with_index do |c, i| -%> <%- end -%>
Code Candidate
<%= (i + 65).chr %> <%= c.name %>