<% %>

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

Condorcet (w/ Cloneproof SSD) Results

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

Plurality Results

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

Approval Result

(Assuming top two choices are "approved.")

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

Simple Condorcet Results

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

Borda Count Results

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

Instant Runoff (IRV) Results

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

Voters

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