X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/18f4d0bd0025dd963b5fab238964de6d20e0d354..ca25ff5b7d32b8c3d94dfcbad2e9c3a3cbe21280:/app/views/quickvote/_result.rhtml?ds=inline diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml index e0ead6d..b0a3a85 100644 --- a/app/views/quickvote/_result.rhtml +++ b/app/views/quickvote/_result.rhtml @@ -1,10 +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 %> +