The results page should now work for scaling embeddableelections as well.
[selectricity-live] / app / views / embed / full_vote.rhtml
index 89e384ca9d5c1885b6dd8ee2dff5bb56ae81c7fa..56715eb064203e78f174e8627b9521e0b3f77f2e 100644 (file)
@@ -4,19 +4,8 @@
 </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 %>
-               <p class="position"
-               style="position:absolute;top:<%=(10+(count+1)*53)%>px;left:10px">
-                       <%=count+1%>
-               </p>
-       <%end%>
+       
+       <%= render :partial => '/embed/backdrop' %>
        
        <ul id="rankings-list">
       <% @voter.vote.rankings.each do |ranking| %>

Benjamin Mako Hill || Want to submit a patch?