2 <%= link_to '<img id="header_icon" src="/images/embed_header_icon.png" />',
3 {:controller => 'front'}, {:target => "_parent"} %>
4 <h2>Current Standings</h2>
6 <div id="voting-box" height="<%=(@election.candidates.length + 2)*53 %>px">
8 <%= render :partial => '/embed/backdrop' %>
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) -%>
18 /images/default_icon.png
20 <p class="ranking-info">
21 <strong><%= white_list ranking.name %></strong><br />
22 <%= white_list ranking.description %></p>
27 <div style="clear:both;"></div>
29 <div id="results-bottom" style="
30 <% if @election.candidates.length%2 == 0 %>
31 background-image:url(/images/bottom_dark.png)
33 background-image:url(/images/bottom_light.png)
36 <a href="<%= votepassword_url :urlpassword => "open." + @voter.election.id.to_s, 'embed' => 'true' %>"><h2>Results</h2></a>
38 <p>Your vote was recorded correctly.</p>