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

Benjamin Mako Hill || Want to submit a patch?