2 <%= link_to '<img id="header_icon" src="/images/embed_header_icon.png" />',
3 {:controller => 'front'}, {:target => "_parent"} %><h2>Vote Now</h2>
6 <div id="voting-box" height="<%=(@election.candidates.length + 2)*53 %>px">
8 <%= render :partial => '/embed/backdrop' %>
10 <ul id="rankings-list">
11 <% @voter.vote.rankings.each do |ranking| %>
12 <li class="ranking" id="ranking_<%= ranking.candidate.id %>">
13 <img alt="<%= white_list ranking.candidate.name %>"
14 src="<% if ranking.candidate.picture -%>
15 <%= url_for ranking.candidate.picture.public_filename(:thumb) -%>
17 /images/default_icon.png
19 <p class="ranking-info">
20 <strong><%= white_list ranking.candidate.name %></strong><br />
21 <%= white_list ranking.candidate.description %></p>
26 <div style="clear:both;"></div>
28 <div id="voting-bottom" style="
29 <% if @election.candidates.length%2 == 0 %>
30 background-image:url(/images/bottom_dark.png)
32 background-image:url(/images/bottom_light.png)
35 <a href="<%= url_for :action => :confirm, :id => @password, :embed => 'true' %>"><h2 id="submit_vote_button">Submit Vote</h2></a>
36 <p><b>Drag and drop</b> to rank the choices.</p>
41 <%= sortable_element 'rankings-list',
42 :url => { :action => "sort_candidates", :id => @voter.vote.id } %>