]> projects.mako.cc - selectricity-live/blob - app/views/quickvote/_result.rhtml
rebranded from votingbooth to hyperchad
[selectricity-live] / app / views / quickvote / _result.rhtml
1 <% %>
2 <% if result.winner? and result.winners.length == 1%>
3   <p><em>The winner is:
4      <strong><%= @candidates[result.winner].name.capitalize %></strong></em></p>
5 <% elsif result.winner? and result.winners.length > 1 %>
6   <p><em>There was a tie. The winners are: <strong><%=
7   result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") %></strong></em></p>
8 <% else %>
9   <p><em>There is no winner using this method. </em></strong></p>
10 <% end %>

Benjamin Mako Hill || Want to submit a patch?