From e8094b780ec0f30ac06b4de4c4f3a9c2bffe209d Mon Sep 17 00:00:00 2001 From: Date: Wed, 6 Feb 2008 01:40:23 -0500 Subject: [PATCH] added template left out from last committ by accident --- app/views/common/_results_sidebar.rhtml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 app/views/common/_results_sidebar.rhtml 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 ))%> +
+
+ -- 2.30.2