The results page should now work for scaling embeddableelections as well.
[selectricity] / app / views / embed / _backdrop.rhtml
diff --git a/app/views/embed/_backdrop.rhtml b/app/views/embed/_backdrop.rhtml
new file mode 100644 (file)
index 0000000..847f9a3
--- /dev/null
@@ -0,0 +1,13 @@
+<%@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="top:<%=(10+(count+1)*53)%>px;left:10px">
+       <%=count+1 -%>
+       </p>
+       
+<%end%>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?