X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc..ac5e3489e8b886b7b8a7252ab56ddeb3d3bdadc7:/app/views/quickvote/results.rhtml diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index ad71fa6..e3644c8 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -1,36 +1,77 @@ <% %> +

Results

-

<%= @election.name %> Results

+<% if @election.shortdesc %> +

Description:

+
<%= @election.shortdesc %> + <% if @election.longdesc -%> +
+ <%= h(@election.longdesc) -%> + <% end -%> +
+<% end %> + +

Candidates/choices:

+ +
    + <% for candidate in @election.candidates.sort %> +
  1. <%= candidate.name.capitalize %>
  2. + <% end %> +
+ +

Number of voters:

+
+ <%= @election.voters.length %> (see below for details) +
+ +

Winners

-

Total Votes: <%= @election.voters.length %>

-

Condorcet (w/ Cloneproof SSD) Results

+

Condorcet (w/ Cloneproof SSD) Results

<%= render :partial => 'result', :object => @ssd_result %>
-

Plurality Results

+

Plurality Results

<%= render :partial => 'result', :object => @plurality_result %>
-

Approval Result

+

Approval Result

(Assuming top two choices are "approved.")

<%= render :partial => 'result', :object => @approval_result %>
-

Simple Condorcet Results

+

Simple Condorcet Results

<%= render :partial => 'result', :object => @condorcet_result %>
-

Borda Count Results

+

Borda Count Results

<%= render :partial => 'result', :object => @borda_result %>
-

Instant Runoff (IRV) Results

+

Instant Runoff (IRV) Results

<%= render :partial => 'result', :object => @runoff_result %>
- + +
+ +

Voters

+ + + + + + + +<% for voter in @election.voters %> + + + + + +<% end %> +
IP AddressDNS/HostVote
<%= voter.ipaddress %><%= `host #{voter.ipaddress}`.sub(/^.*pointer (.*)\.$/, '\1') %><%= voter.vote.votestring %>