X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/ac5e3489e8b886b7b8a7252ab56ddeb3d3bdadc7..37ccb3a5511504b6b58c3fe70135e016d0a61bfd:/app/views/quickvote/results.rhtml diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index e3644c8..4c91538 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -1,9 +1,13 @@ -<% %> -

Results

+<% require 'whois/whois' %> + +
+ Quickvote + Results +
<% if @election.shortdesc %> -

Description:

-
<%= @election.shortdesc %> +

Vote Description:

+
<%=h @election.shortdesc %> <% if @election.longdesc -%>
<%= h(@election.longdesc) -%> @@ -15,63 +19,29 @@
    <% for candidate in @election.candidates.sort %> -
  1. <%= candidate.name.capitalize %>
  2. +
  3. <%=h candidate.name.capitalize %>
  4. <% end %>

Number of voters:

- <%= @election.voters.length %> (see below for details) + <%= @election.voters.reject {|v| not v.voted? }.length %>
-

Winners

- -
-

Condorcet (w/ Cloneproof SSD) Results

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

Plurality Results

-<%= render :partial => 'result', :object => @plurality_result %> -
+<%= render :partial => 'result_box', + :locals => { :method => @election.election_method } %> -
-

Approval Result

-

(Assuming top two choices are "approved.")

-<%= render :partial => 'result', :object => @approval_result %> -
+<% for result_type in @election.other_methods %> -
-

Simple Condorcet Results

-<%= render :partial => 'result', :object => @condorcet_result %> -
+<%= render :partial => 'result_box', + :locals => { :method => result_type } %> -
-

Borda Count Results

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

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 %>