X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/e7bff908a0ea52b62e4fa0dc13be0293a51dcbb1..83a39529b634c0344a7884d5813e3f7e1a7dbcb4:/app/views/common/details.rhtml diff --git a/app/views/common/details.rhtml b/app/views/common/details.rhtml new file mode 100644 index 0000000..ae09c29 --- /dev/null +++ b/app/views/common/details.rhtml @@ -0,0 +1,63 @@ +<% @votes = @election.votes.select {|v| v.confirmed? }.shuffle %> +<% @voters = @votes.collect {|v| v.voter}.shuffle %> + +
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:
+ +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 %> | Verification Token | <% end %> +Vote | +<%- @votes.each_with_index do |vote, i| -%> +
---|---|---|
<%= i + 1 %> | +<% if @election.verifiable %><%= vote.token %> | <% end %> +<%= vote.votestring%> | +
Key:
+ +Code | +Candidate | +<%- @election.candidates.sort.each_with_index do |c, i| -%> +
---|---|
<%= (i + 65).chr %> | +<%= c.name %> | +