X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/8964e46880760a85a7c86a239f032c841a96410d..37ccb3a5511504b6b58c3fe70135e016d0a61bfd:/app/views/quickvote/_results_sidebar.rhtml diff --git a/app/views/quickvote/_results_sidebar.rhtml b/app/views/quickvote/_results_sidebar.rhtml index 704c052..f346b2e 100644 --- a/app/views/quickvote/_results_sidebar.rhtml +++ b/app/views/quickvote/_results_sidebar.rhtml @@ -1,2 +1,44 @@ +

Winner

+<%= render :partial => 'result', :object => @results[@election.election_method] %> + +

This election was run using: +<%= ELECTION_TYPES[@election.election_method] %>

+ +

View results using other methods:
+<% type_hash = {}; ELECTION_TYPES.each {|k,v| type_hash[v] = k} %> +<%= select_tag 'election_type_select', options_for_select(type_hash, @election.election_method) %>

+ + + +

Statistics

<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%> +
+
+ +

Voter Report

+ +

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