]> projects.mako.cc - selectricity-live/blobdiff - app/views/quickvote/results.rhtml
Updated the "votes_per_day" method in graph controller to work better and
[selectricity-live] / app / views / quickvote / results.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index ef2ffd9..030d246
@@ -21,7 +21,7 @@
 
 <p><strong>Number of voters:</strong></p>
    <blockquote>
 
 <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>
    </blockquote>
 
 <h2>Winners</h2>
@@ -161,3 +161,9 @@ by several other names.</p>
   </tr>
 <% end %>
 </table>
   </tr>
 <% end %>
 </table>
+
+<%= image_tag( graph_url( :action => 'votes_per_day', :id => @election ) ) %><br />
+<%= image_tag( graph_url(:action => 'votes_per_interval', :id => @election)) %>
+
+
+

Benjamin Mako Hill || Want to submit a patch?