]> projects.mako.cc - selectricity/commitdiff
added numbering back to embeddables, should count correctly no matter how many candid...
author<jlsharps@mit.edu> <>
Tue, 13 May 2008 00:25:32 +0000 (20:25 -0400)
committer<jlsharps@mit.edu> <>
Tue, 13 May 2008 00:25:32 +0000 (20:25 -0400)
app/views/embed/full_vote.rhtml
public/stylesheets/embed.css

index 69eed9cc4bb4780d7b043a3c00689225b4a206a9..89e384ca9d5c1885b6dd8ee2dff5bb56ae81c7fa 100644 (file)
                        <img src="/images/widget_light.png" 
                        style="position:absolute;top:<%=(count+1)*53%>px">
                <% end %>
                        <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%>
        
        <ul id="rankings-list">
        <%end%>
        
        <ul id="rankings-list">
-               
-               
-               
       <% @voter.vote.rankings.each do |ranking| %>
                <li class="ranking" id="ranking_<%= ranking.candidate.id %>">
                        <img alt="<%= white_list ranking.candidate.name %>"
       <% @voter.vote.rankings.each do |ranking| %>
                <li class="ranking" id="ranking_<%= ranking.candidate.id %>">
                        <img alt="<%= white_list ranking.candidate.name %>"
index 90e1a216ae935dee9fe1032a5d3f1a65691dfcbb..86248c1bbae10dbe757b28b84a36a8398ebcbbcb 100644 (file)
@@ -109,6 +109,12 @@ a {
        overflow: hidden;\r
 }\r
 \r
        overflow: hidden;\r
 }\r
 \r
+p.position {\r
+       color: #000000;\r
+       font-size:32px;\r
+       font-family:'arial';\r
+}\r
+\r
 ul {\r
        margin: 0 0 0 40px;\r
        padding: 0 0 0 0px;\r
 ul {\r
        margin: 0 0 0 40px;\r
        padding: 0 0 0 0px;\r

Benjamin Mako Hill || Want to submit a patch?