X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/538c52ea43285fc1ae40e3c3ff5ee78befa1c142..da6c29f53b3598a6d2d9959df277b0340bc54cee:/app/views/voter/results.rhtml diff --git a/app/views/voter/results.rhtml b/app/views/voter/results.rhtml new file mode 100644 index 0000000..bb95c88 --- /dev/null +++ b/app/views/voter/results.rhtml @@ -0,0 +1,43 @@ +<% require 'whois/whois' %> + +
+ Results + <%= @election.name %> +
+ +
+<%= render :partial => 'common/result', :object => @results[@election.election_method] %> +
+ +<% if @election.shortdesc %> +

Vote Description:

+
<%=h @election.shortdesc %> + <% if @election.longdesc -%> +
+ <%= h(@election.longdesc) -%> + <% end -%> +
+<% end %> + +

Number of voters:

+
+ <%= @election.voters.reject {|v| not v.voted? }.length %> +
+ +<%= render :partial => 'common/result_box', + :locals => { :method => @election.election_method } %> + +<% for result_type in @election.other_methods %> + +<%= render :partial => 'common/result_box', + :locals => { :method => result_type } %> + +<% end %> + + +
+ + +