X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ac5e3489e8b886b7b8a7252ab56ddeb3d3bdadc7..2facf9c3cba1ddc270c84a713cafbe6eb7280efd:/app/views/quickvote/results.rhtml?ds=inline diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index e3644c8..78e74e8 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -1,9 +1,17 @@ -<% %> -

Results

+<% require 'whois/whois' %> + +
+ Quickvote + Results +
+ +
+<%= render :partial => 'common/result', :object => @results[@election.election_method] %> +
<% if @election.shortdesc %> -

Description:

-
<%= @election.shortdesc %> +

Vote Description:

+
<%=h @election.shortdesc %> <% if @election.longdesc -%>
<%= h(@election.longdesc) -%> @@ -15,63 +23,29 @@
    <% for candidate in @election.candidates.sort %> -
  1. <%= candidate.name.capitalize %>
  2. +
  3. <%= white_list(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 => 'common/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 => 'common/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 %>