The results page should now work for scaling embeddableelections as well.
[selectricity-live] / app / views / embed / full_vote.rhtml
index 69eed9cc4bb4780d7b043a3c00689225b4a206a9..56715eb064203e78f174e8627b9521e0b3f77f2e 100644 (file)
@@ -4,20 +4,10 @@
 </div>
 
 <div id="voting-box" height="<%=(@election.candidates.length + 2)*53 %>px">
-       <%@election.candidates.length.times do |count|%>
-               <% if (count%2)==0%>
-                       <img src="/images/widget_dark.png" 
-                       style="position:absolute;top:<%=(count+1)*53%>px;">
-                       <% else %>
-                       <img src="/images/widget_light.png" 
-                       style="position:absolute;top:<%=(count+1)*53%>px">
-               <% end %>
-       <%end%>
+       
+       <%= render :partial => '/embed/backdrop' %>
        
        <ul id="rankings-list">
-               
-               
-               
       <% @voter.vote.rankings.each do |ranking| %>
                <li class="ranking" id="ranking_<%= ranking.candidate.id %>">
                        <img alt="<%= white_list ranking.candidate.name %>"

Benjamin Mako Hill || Want to submit a patch?