]> projects.mako.cc - selectricity-live/blob - app/views/quickvote/results.rhtml
The legend is now hidden when there is only one color to display on a graph.
[selectricity-live] / 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 <% if @election.shortdesc %>
9   <p><strong>Vote Description:</strong></p>
10   <blockquote><em><%=h @election.shortdesc %></em>
11     <% if @election.longdesc -%>
12       <br />
13       <%= h(@election.longdesc) -%>
14     <% end -%>
15   </blockquote>
16 <% end %>
17
18 <p><strong>Candidates/choices:</strong></p>
19
20 <ol>
21   <% for candidate in @election.candidates.sort %>
22     <li><%=h candidate.name.capitalize %></li>
23   <% end %>
24 </ol>
25
26 <p><strong>Number of voters:</strong></p>
27    <blockquote>
28      <%= @election.voters.reject {|v| not v.voted? }.length %>
29    </blockquote>
30
31 <%= render :partial => 'result_box',
32            :locals => { :method => @election.election_method } %>
33
34 <% for result_type in @election.other_methods %>
35
36 <%= render :partial => 'result_box',
37            :locals => { :method => result_type } %>
38
39 <% end %>
40
41
42 <div class="clear-div"></div>
43
44 <!--
45 <%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
46 -->
47

Benjamin Mako Hill || Want to submit a patch?