ensl.org/app/views/challenges/index.html.erb

22 lines
681 B
Text
Raw Normal View History

2014-04-27 01:46:11 +00:00
<h1 class="title">Listing Challenges</h1>
2014-04-27 01:46:11 +00:00
<table class="striped">
<tr>
<th>Challenger</th>
<th>Recipient</th>
<th>Match time</th>
<th>Status</th>
2014-04-27 01:46:11 +00:00
<th class="actions"></th>
</tr>
<% @challenges.each do |challenge| %>
<tr class="<%= cycle('even', 'odd') %>">
<td><%= namelink challenge.contester1.team %></td>
<td><%= namelink challenge.contester2.team %></td>
<td><%= link_to (shorttime challenge.match_time), challenge %></td>
<td><%= challenge.statuses[challenge.status] %></td>
2014-04-27 01:46:11 +00:00
<td class="actions"><%= link_to icon('times'), challenge, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>