X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/9cb3f02c2333ed806c8614a3f4509bd1cf346ddb..f7e185abe92cf8a4590f32996c86d15b8309db86:/app/views/quickvote/results.rhtml diff --git a/app/views/quickvote/results.rhtml b/app/views/quickvote/results.rhtml index 52810fe..78e74e8 100644 --- a/app/views/quickvote/results.rhtml +++ b/app/views/quickvote/results.rhtml @@ -5,6 +5,10 @@ Results +
+<%= render :partial => 'common/result', :object => @results[@election.election_method] %> +
+ <% if @election.shortdesc %>

Vote Description:

<%=h @election.shortdesc %> @@ -19,21 +23,21 @@
    <% for candidate in @election.candidates.sort %> -
  1. <%=h candidate.name.capitalize %>
  2. +
  3. <%= white_list(candidate.name.capitalize) %>
  4. <% end %>

Number of voters:

- <%= @election.voters.reject {|v| not v.voted? }.length %> (see below for details) + <%= @election.voters.reject {|v| not v.voted? }.length %>
-<%= render :partial => 'result_box', +<%= render :partial => 'common/result_box', :locals => { :method => @election.election_method } %> <% for result_type in @election.other_methods %> -<%= render :partial => 'result_box', +<%= render :partial => 'common/result_box', :locals => { :method => result_type } %> <% end %> @@ -41,14 +45,6 @@
-
- Voter Report - -
- -

<%= link_to "[View All Voters]", :controller => "quickvote", :action => "list_voters", :id => @election.id %>

-
-