X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/776bdf980f85cf230b238a80e1019fc78d53f06e..45d48f668c0159ebae18fecb76b3b94f79f87d24:/app/views/quickvote/_results_sidebar.rhtml?ds=sidebyside diff --git a/app/views/quickvote/_results_sidebar.rhtml b/app/views/quickvote/_results_sidebar.rhtml index 704c052..773db65 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 "[Map/List of Voters]", :controller => "quickvote", + :action => "list_voters", :id => @election.id %>