]> projects.mako.cc - selectricity-live/blob - app/views/embed/results.rhtml
mergec minor changes from live
[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" height="<%=(@election.candidates.length + 2)*53 %>px">
7         
8         <%= render :partial => '/embed/backdrop' %>
9         
10         <ul id="rankings-list">
11       <% @election.ssd_result.ranked_candidates.flatten.each do |ranking_id| %>
12        <% ranking = @candidates[ranking_id] %>
13                 <li class="ranking" id="ranking_<%= ranking.id %>">
14                         <img alt="<%= white_list ranking.name %>"
15                  src="<% if ranking.picture -%>
16                       <%= url_for ranking.picture.public_filename(:thumb) -%>
17                      <%- else -%>
18                      /images/default_icon.png
19                      <%- end %>" />
20                         <p class="ranking-info">
21             <strong><%= white_list ranking.name %></strong><br />
22             <%= white_list ranking.description %></p>
23                 </li>
24       <% end %>
25         </ul>
26         
27         <div style="clear:both;"></div>
28         
29         <div id="results-bottom" style="
30         <% if @election.candidates.length%2 == 0 %>
31         background-image:url(/images/bottom_dark.png)
32         <%else%>
33         background-image:url(/images/bottom_light.png)
34         <%end%>">
35                 <div id="container">
36                 <a href="<%= votepassword_url :urlpassword => "open." + @voter.election.id.to_s, 'embed' => 'true' %>"><h2>Results</h2></a>
37                         
38             <p>Your vote was recorded correctly.</p>
39
40                 </div>
41         </div>
42 </div>
43
44

Benjamin Mako Hill || Want to submit a patch?