X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/6ea52ab5c0c29ce60f5a8ee2747eb52f47d5b884..31b488895f365c4bd3b0d295cea4a096e1846b23:/app/views/quickvote/_result.rhtml?ds=sidebyside diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml index b643224..b0a3a85 100644 --- a/app/views/quickvote/_result.rhtml +++ b/app/views/quickvote/_result.rhtml @@ -1,9 +1,12 @@ -<% %> -<% if result.winner? and result.winners.length == 1%> -
The winner is: - <%=h @candidates[result.winner].name.capitalize %>
++<% if result.winner? and result.winners.length == 1 -%> + The winner is: + <%=h @candidates[result.winner].name.capitalize %> <% elsif result.winner? and result.winners.length > 1 %> -
There was a tie. The winners are: <%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%>
+ There was a tie. The winners are: <%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%> <% else %> -There is no winner using this method.
+There is no winner using this method. <% end %> +
+