X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/c5fda1e5174238779afd496014379d6446d1e3c1..dc7d60a0de460c72d292b43616eb97a8b34741c8:/app/views/elections/detailed_results.rhtml diff --git a/app/views/elections/detailed_results.rhtml b/app/views/elections/detailed_results.rhtml index 48296d6..4668570 100644 --- a/app/views/elections/detailed_results.rhtml +++ b/app/views/elections/detailed_results.rhtml @@ -1,31 +1,54 @@ -

The voting rolls for the last election are are follows.

+<% %> -

Voters

- -<% for voter in @voting_rolls.randomize %> +

Result

+ +<%= render_partial 'winner' %> + +

Result Details

+ +<%= render_partial 'winner_details' %> + +

Election Rolls for Voter Verification

+ +

The voting rolls -- displayed here in alphabetical order -- for the +last election are are follows.

+ +

Information is displayed here to help voters verify that their own +vote was recorded correctly and that the election was not tampered +with.

+ +

Voters

+
+ +<% for email in @voter_list %> - + <% end %>
Voters (A-Z)
<%= voter.email %><%= email %>
-

Votes (by Token)

+

Votes by Token

+ +

The votes, listed in alphabetical order by token.

+ - + -<% for candidate in @election.candidates.sort %> + +<% for candidate in @election.candidates.sort.reverse %> <% end %> + -<% for voter in @voting_rolls.randomize %> - - -<% for ranking in voter.vote %> - -<% end %> - +<% for vote in @vote_list %> + + + <% for ranking in vote.rankings %> + + <% end %> + <% end %>
TokenToken (0-9, A-Z) Rank of Candidates
<%= candidate %>
<%= voter.vote.token %><%= ranking %>
<%= vote.token %><%= ranking %>