X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc..dcf695c59be7d21509575a4570ba14b619d7723c:/app/views/quickvote/_result.rhtml diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml index a326459..e0ead6d 100644 --- a/app/views/quickvote/_result.rhtml +++ b/app/views/quickvote/_result.rhtml @@ -1,10 +1,10 @@ -<% %> +
<% if result.winner? and result.winners.length == 1%> -

The winner is: - <%= @candidates[result.winner].name %>

+

The winner is: + <%=h @candidates[result.winner].name.capitalize %>

<% elsif result.winner? and result.winners.length > 1 %> -

There was a tie. The winners are: <%= - result.winners.collect {|w| @candidates[w]}.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 %> +