]> projects.mako.cc - selectricity-live/blob - app/views/election/_winner.rhtml
Can upload images on the edit_general_information page as well, but has no checks...
[selectricity-live] / app / views / election / _winner.rhtml
1 <% %>
2
3 <% if @winners.length > 1 %>
4   <p>There were multiple winners for the election. The winners (tied)
5   were:
6
7   <ul>
8   <% for candidate in @winners %>
9     <li><%=h @candidates_by_id[candidate].name %></li>
10   <% end %>
11   </ul>
12
13 <% else %>
14
15   <% winner = @winners[0] %>
16   <p>The winner of the election was:
17      <strong><%=h @candidates_by_id[winner].name %></strong>
18   </p>
19
20 <% end %>
21

Benjamin Mako Hill || Want to submit a patch?