]> projects.mako.cc - selectricity-live/blob - app/views/embed/_backdrop.rhtml
Add links to create new election/quick vote on the account summary screen.
[selectricity-live] / app / views / embed / _backdrop.rhtml
1 <%@election.candidates.length.times do |count|-%>
2         <% if (count%2)==0-%>
3                 <img src=" <% if @bg1 -%>
4                         <%= url_for @bg1.public_filename %>
5                 <% else %>
6                         /images/widget_dark.png 
7                 <% end -%> " style="position:absolute;top:<%=(count+1)*53%>px"/> 
8         <% else -%>
9                 <img src=" <% if @bg2 -%>
10                         <%=url_for @bg2.public_filename %>
11                 <% else %>
12                         /images/widget_light.png
13                 <% end -%>" 
14                         style="position:absolute;top:<%=(count+1)*53%>px">
15         <% end -%>
16         <p class="position" style="top:<%=(10+(count+1)*53)%>px;left:10px">
17         <%=count+1 -%>
18         </p>
19         
20 <%end%>

Benjamin Mako Hill || Want to submit a patch?