Added a new bar graph, that counts how many points the borda system of
[selectricity] / app / views / quickvote / results.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index ef2ffd9..5fdfc3c
@@ -21,7 +21,7 @@
 
 <p><strong>Number of voters:</strong></p>
    <blockquote>
-     <%= @election.voters.length %> (see below for details) 
+     <%= @election.voters.reject {|v| not v.voted? }.length %> (see below for details) 
    </blockquote>
 
 <h2>Winners</h2>
@@ -161,3 +161,9 @@ by several other names.</p>
   </tr>
 <% end %>
 </table>
+
+<%= image_tag( graph_url( :action => 'votes_per_day', :id => @election ) ) %><br />
+<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%><br />
+<%= image_tag( graph_url( :action => 'borda_bar', :id => @election ) ) %>
+
+

Benjamin Mako Hill || Want to submit a patch?