fixed up the results page in a number of ways
[selectricity] / app / views / quickvote / _result.rhtml
index e0ead6de4e3f27b60524554f0b06241578fcd169..b0a3a8522363fcdd8dde2eb70eb7c261ca7e6cb2 100644 (file)
@@ -1,10 +1,12 @@
 <div class="winner">
-<% if result.winner? and result.winners.length == 1%>
-  <p>The winner is:
-     <strong><%=h @candidates[result.winner].name.capitalize %></strong></p>
+<p class="winner_text">
+<% if result.winner? and result.winners.length == 1 -%>
+  The winner is:
+     <strong><%=h @candidates[result.winner].name.capitalize %></strong>
 <% elsif result.winner? and result.winners.length > 1 %>
-  <p>There was a tie. The winners are: <strong><%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%></strong></p>
+  There was a tie. The winners are: <strong><%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%></strong>
 <% else %>
-  <p>There is no winner using this method. </strong></p>
+  <p>There is no winner using this method. </strong>
 <% end %>
+</p>
 </div>

Benjamin Mako Hill || Want to submit a patch?