merged from devel
[selectricity] / app / views / quickvote / results.rhtml
index c0de537b423229f3c1fc28ad71cbf91caece8895..78e74e89191103180e249cece519720474be61b5 100644 (file)
@@ -5,6 +5,10 @@
   <span class="subheader">Results</span>
 </div>
 
+<div id="winner_box">
+<%= render :partial => 'common/result', :object => @results[@election.election_method] %>
+</div>
+
 <% if @election.shortdesc %>
   <p><strong>Vote Description:</strong></p>
   <blockquote><em><%=h @election.shortdesc %></em>
@@ -19,7 +23,7 @@
 
 <ol>
   <% for candidate in @election.candidates.sort %>
-    <li><%=h candidate.name.capitalize %></li>
+    <li><%= white_list(candidate.name.capitalize) %></li>
   <% end %>
 </ol>
 
      <%= @election.voters.reject {|v| not v.voted? }.length %>
    </blockquote>
 
-<%= 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 %>
 
 <div class="clear-div"></div>
 
-<div class="normal-header">
-  <span class="header">Voter Report</span>
-  <span class="subheader"></span>
-</div>
-
-<p><%= link_to "[View All Voters]", :controller => "quickvote", :action => "list_voters", :id => @election.id %></p>
-<br />
-
 <!--
 <%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
 -->

Benjamin Mako Hill || Want to submit a patch?