Allow custimizable graph sizes, to fit with newly modular results page. Also,
[selectricity] / app / views / quickvote / _result_borda.rhtml
index 97d82e5eaa24902dccac39b5fe7625c3913a001d..f81cbdba2814bb7dc31209597d2dfa53e928b848 100644 (file)
@@ -1,6 +1,7 @@
-<div class="resultbox">
 <h3>Borda Count Results</h3>
 
+<%= render :partial => 'result', :object => @election.borda_result %>
+
 <div class="rbmoreinfo">
 <h4>About Borda Count</h4>
 
@@ -13,4 +14,4 @@ corresponding to the position in which he or she is ranked by each
 voter. Once all votes have been counted the candidate with the most
 points is the winner.</p>
 </div>
-</div>
\ No newline at end of file
+<%= image_tag( graph_url( :action => 'borda_bar', :id => @election ) ) %>

Benjamin Mako Hill || Want to submit a patch?