]> projects.mako.cc - selectricity-live/blob - app/views/embed/results.rhtml
b9b1eb48260ddc11553858d13c88ad92ba41af26
[selectricity-live] / app / views / embed / results.rhtml
1 <div id="header">
2 <img id="header_icon" src="/images/embed_header_icon.png" />
3 <h2>Current Standings</h2>
4 </div>
5 <div id="voting-box">
6         
7         <ul id="rankings-list">
8       <% @election.ssd_result.ranked_candidates.flatten.each do |ranking_id| %>
9        <% ranking = @candidates[ranking_id] %>
10                 <li class="ranking" id="ranking_<%= ranking.id %>">
11                         <img alt="<%= white_list ranking.name %>"
12                  src="<% if ranking.picture -%>
13                       <%= url_for ranking.picture.public_filename(:thumb) -%>
14                      <%- else -%>
15                      /images/default_icon.png
16                      <%- end %>" />
17                         <p class="ranking-info">
18             <strong><%= white_list ranking.name %></strong><br />
19             <%= white_list ranking.description %></p>
20                 </li>
21       <% end %>
22         </ul>
23         
24         <div style="clear:both;"></div>
25         
26         <div id="results-bottom">
27                 <div id="container">
28                 <a href="<%= votepassword_url :urlpassword => "open." + @voter.election.id.to_s, 'embed' => 'true' %>"><h2>Results</h2></a>
29                         
30             <p>Your vote was recorded correctly.</p>
31
32                 </div>
33         </div>
34 </div>
35
36

Benjamin Mako Hill || Want to submit a patch?