X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/ac5e3489e8b886b7b8a7252ab56ddeb3d3bdadc7..adf9b5ec96187af2108c42791319cbe2a3366506:/app/views/quickvote/results.rhtml diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index e3644c8..52810fe 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -1,9 +1,13 @@ -<% %> -
Description:
-<%= @election.shortdesc %> +Vote Description:
+<%=h @election.shortdesc %> <% if @election.longdesc -%>
<%= h(@election.longdesc) -%> @@ -15,63 +19,37 @@<% for candidate in @election.candidates.sort %> -
- <%= candidate.name.capitalize %>
+- <%=h candidate.name.capitalize %>
<% end %>Number of voters:
- <%= @election.voters.length %> (see below for details) + <%= @election.voters.reject {|v| not v.voted? }.length %> (see below for details)-Winners
+<%= render :partial => 'result_box', + :locals => { :method => @election.election_method } %> --+<% for result_type in @election.other_methods %> --<%= render :partial => 'result', :object => @ssd_result %> - Condorcet (w/ Cloneproof SSD) Results
-+<%= render :partial => 'result_box', + :locals => { :method => result_type } %> -Plurality Results
-<%= render :partial => 'result', :object => @plurality_result %> --+<% end %> -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 %> ++ Voter Report +- +<%= link_to "[View All Voters]", :controller => "quickvote", :action => "list_voters", :id => @election.id %>
+
-Voters
+ --
- -<% for voter in @election.voters %> -IP Address -DNS/Host -Vote -- -<% end %> -<%= voter.ipaddress %> -<%= `host #{voter.ipaddress}`.sub(/^.*pointer (.*)\.$/, '\1') %> -<%= voter.vote.votestring %> -