]> projects.mako.cc - selectricity/blob - app/views/quickvote/results.rhtml
TODO has been modified to relfect bug changes already delt with. Also, autogenerated...
[selectricity] / app / views / quickvote / results.rhtml
1 <% require 'whois/whois' %>
2
3 <div id="title-header">
4   <span class="header">Quickvote</span>
5   <span class="subheader">Results</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>Candidates/choices:</strong></p>
23
24 <ol>
25   <% for candidate in @election.candidates.sort %>
26     <li><%= white_list(candidate.name.capitalize) %></li>
27   <% end %>
28 </ol>
29
30 <p><strong>Number of voters:</strong></p>
31    <blockquote>
32      <%= @election.voters.reject {|v| not v.voted? }.length %>
33    </blockquote>
34
35 <%= render :partial => 'common/result_box',
36            :locals => { :method => @election.election_method } %>
37
38 <% for result_type in @election.other_methods %>
39
40 <%= render :partial => 'common/result_box',
41            :locals => { :method => result_type } %>
42
43 <% end %>
44
45
46 <div class="clear-div"></div>
47
48 <!--
49 <%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
50 -->
51

Benjamin Mako Hill || Want to submit a patch?