]> projects.mako.cc - selectricity-live/blob - app/views/common/_result.rhtml
Correct some help text.
[selectricity-live] / app / views / common / _result.rhtml
1 <div class="winner">
2 <p class="winner_text">
3 <% if result.winner? and result.winners.length == 1 -%>
4   The winner is:
5      <strong><%= white_list(@candidates[result.winner].name.capitalize) %></strong>
6 <% elsif result.winner? and result.winners.length > 1 %>
7   There was a tie. The winners are: <strong><%= white_list(result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%></strong>
8 <% else %>
9   <p>There is no winner using this method. </strong>
10 <% end %>
11 </p>
12 </div>

Benjamin Mako Hill || Want to submit a patch?