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">
7 <%@election.candidates.length.times do |count|%>
9 <img src="/images/widget_dark.png"
10 style="position:absolute;top:<%=(count+1)*53%>px;">
12 <img src="/images/widget_light.png"
13 style="position:absolute;top:<%=(count+1)*53%>px">
17 <ul id="rankings-list">
21 <% @voter.vote.rankings.each do |ranking| %>
22 <li class="ranking" id="ranking_<%= ranking.candidate.id %>">
23 <img alt="<%= white_list ranking.candidate.name %>"
24 src="<% if ranking.candidate.picture -%>
25 <%= url_for ranking.candidate.picture.public_filename(:thumb) -%>
27 /images/default_icon.png
29 <p class="ranking-info">
30 <strong><%= white_list ranking.candidate.name %></strong><br />
31 <%= white_list ranking.candidate.description %></p>
36 <div style="clear:both;"></div>
38 <div id="voting-bottom" style="
39 <% if @election.candidates.length%2 == 0 %>
40 background-image:url(/images/bottom_dark.png)
42 background-image:url(/images/bottom_light.png)
45 <a href="<%= url_for :action => :confirm, :id => @password, :embed => 'true' %>"><h2 id="submit_vote_button">Submit Vote</h2></a>
46 <p><b>Drag and drop</b> to rank the choices.</p>
51 <%= sortable_element 'rankings-list',
52 :url => { :action => "sort_candidates", :id => @voter.vote.id } %>