bb95c88438905e016342b3b4c21ccfa073eb6f2d
[selectricity-live] / app / views / voter / results.rhtml
1 <% require 'whois/whois' %>
2
3 <div id="title-header">
4   <span class="header">Results</span>
5   <span class="subheader"><%= @election.name %></span>
6 </div>
7
8 <div id="winner_box">
9 <%= render :partial => 'common/result', :object => @results[@election.election_method] %>
10 </div>
11
12 <% if @election.shortdesc %>
13   <p><strong>Vote Description:</strong></p>
14   <blockquote><em><%=h @election.shortdesc %></em>
15     <% if @election.longdesc -%>
16       <br />
17       <%= h(@election.longdesc) -%>
18     <% end -%>
19   </blockquote>
20 <% end %>
21
22 <p><strong>Number of voters:</strong></p>
23    <blockquote>
24      <%= @election.voters.reject {|v| not v.voted? }.length %>
25    </blockquote>
26
27 <%= render :partial => 'common/result_box',
28            :locals => { :method => @election.election_method } %>
29
30 <% for result_type in @election.other_methods %>
31
32 <%= render :partial => 'common/result_box',
33            :locals => { :method => result_type } %>
34
35 <% end %>
36
37
38 <div class="clear-div"></div>
39
40 <!--
41 <%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
42 -->
43

Benjamin Mako Hill || Want to submit a patch?