X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/e7bff908a0ea52b62e4fa0dc13be0293a51dcbb1..83a39529b634c0344a7884d5813e3f7e1a7dbcb4:/app/views/common/results.rhtml diff --git a/app/views/common/results.rhtml b/app/views/common/results.rhtml new file mode 100644 index 0000000..6f3a18d --- /dev/null +++ b/app/views/common/results.rhtml @@ -0,0 +1,48 @@ + +<% @results = @election.results %> +<% @names = @election.names_by_id %> +<% @candidates = @election.candidate_hash %> + +<% require 'whois/whois' %> + +
Vote Description:
+<%=h @election.shortdesc %> + <% if @election.longdesc -%> ++<% end %> + +
+ <%= h(@election.longdesc) -%> + <% 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 %> + + + + + +