--- /dev/null
+<%@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
</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| %>
{:controller => 'front'}, {:target => "_parent"} %>
<h2>Current Standings</h2>
</div>
-<div id="voting-box">
+<div id="voting-box" height="<%=(@election.candidates.length + 2)*53 %>px">
+
+ <%= render :partial => '/embed/backdrop' %>
<ul id="rankings-list">
<% @election.ssd_result.ranked_candidates.flatten.each do |ranking_id| %>
<div style="clear:both;"></div>
- <div id="results-bottom">
+ <div id="results-bottom" style="
+ <% if @election.candidates.length%2 == 0 %>
+ background-image:url(/images/bottom_dark.png)
+ <%else%>
+ background-image:url(/images/bottom_light.png)
+ <%end%>">
<div id="container">
<a href="<%= votepassword_url :urlpassword => "open." + @voter.election.id.to_s, 'embed' => 'true' %>"><h2>Results</h2></a>
color: #000000;\r
font-size:32px;\r
font-family:'arial';\r
+ position:absolute;\r
}\r
\r
ul {\r
.ranking {\r
margin: 0px;\r
height: 53px;\r
+ position:relative;\r
overflow: hidden !important;\r
}\r
\r
height:53px;\r
}\r
\r
+#results-bottom {\r
+ position: absolute;\r
+ width: 330px;\r
+ height:53px;\r
+}\r
+\r
#container {\r
margin: 0 auto 0 auto;\r
width: 90%;\r