The results page should now work for scaling embeddableelections as well.
[selectricity-live] / app / views / embed / results.rhtml
index dea9b61a18ff5b2f0a249bd2a7c15e2dc10b2072..a4ea4c1d210f4b42441465220b57f5d2f18ae0e1 100644 (file)
@@ -3,7 +3,9 @@
             {: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>
                        

Benjamin Mako Hill || Want to submit a patch?