% %>
Results
<% if @election.shortdesc %>
Description:
<%= @election.shortdesc %>
<% if @election.longdesc -%>
<%= h(@election.longdesc) -%>
<% end -%>
<% end %>
Candidates/choices:
<% for candidate in @election.candidates.sort %>
- <%= candidate.name.capitalize %>
<% 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
IP Address |
DNS/Host |
Vote |
<% for voter in @election.voters %>
<%= voter.ipaddress %> |
<%= `host #{voter.ipaddress}`.sub(/^.*pointer (.*)\.$/, '\1') %> |
<%= voter.vote.votestring %> |
<% end %>