From: Date: Wed, 6 Feb 2008 06:40:23 +0000 (-0500) Subject: added template left out from last committ by accident X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/e8094b780ec0f30ac06b4de4c4f3a9c2bffe209d?hp=-c added template left out from last committ by accident --- e8094b780ec0f30ac06b4de4c4f3a9c2bffe209d diff --git a/app/views/common/_results_sidebar.rhtml b/app/views/common/_results_sidebar.rhtml new file mode 100644 index 0000000..d18e806 --- /dev/null +++ b/app/views/common/_results_sidebar.rhtml @@ -0,0 +1,38 @@ +

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 ))%> +
+
+