1 <!-- create the default variables -->
2 <% @results = @election.results %>
3 <% @names = @election.names_by_id %>
4 <% @candidates = @election.candidate_hash %>
6 <% require 'whois/whois' %>
8 <div id="title-header">
9 <span class="header">Results</span>
10 <span class="subheader"><%= @election.name %></span>
14 <%= render :partial => 'common/result', :object => @results[@election.election_method] %>
17 <% if @election.shortdesc %>
18 <p><strong>Vote Description:</strong></p>
19 <blockquote><em><%=h @election.shortdesc %></em>
20 <% if @election.longdesc -%>
22 <%= h(@election.longdesc) -%>
27 <p><strong>Number of voters:</strong></p>
29 <%= @election.voters.reject {|v| not v.voted? }.length %>
32 <%= render :partial => 'common/result_box',
33 :locals => { :method => @election.election_method } %>
35 <% for result_type in @election.other_methods %>
37 <%= render :partial => 'common/result_box',
38 :locals => { :method => result_type } %>
43 <div class="clear-div"></div>
46 <%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />