2014-03-23 00:22:25 +00:00
|
|
|
<h1>Gather Archive</h1>
|
2014-05-09 21:38:14 +00:00
|
|
|
<h5 class="title">Players starred were captains for their respective teams.</h5>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 02:42:16 +00:00
|
|
|
<table class="gathers striped">
|
2014-03-23 00:22:25 +00:00
|
|
|
<tr>
|
2014-04-26 02:42:16 +00:00
|
|
|
<th class="date">Date</th>
|
|
|
|
<th class="team1">Team 1</th>
|
|
|
|
<th class="team2">Team 2</th>
|
2014-03-23 00:22:25 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @gathers.each do |gather| %>
|
|
|
|
<tr class="<%= cycle('even', 'odd') %>">
|
|
|
|
<td><%= link_to gather.updated_at.strftime("%Y/%m/%d %H:%M:%S"), gather %></td>
|
|
|
|
<td>
|
2014-04-26 02:42:16 +00:00
|
|
|
<ul>
|
|
|
|
<% gather.gatherers.each do |gatherer| %>
|
|
|
|
<li>
|
|
|
|
<% if gatherer.team == 1 %>
|
|
|
|
<%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %>
|
|
|
|
<% if gather.captain1 == gatherer %>
|
2014-05-09 21:38:14 +00:00
|
|
|
<%= icon 'star' %>
|
2014-04-26 02:42:16 +00:00
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
2014-04-26 02:42:16 +00:00
|
|
|
</li>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
2014-04-26 02:42:16 +00:00
|
|
|
</ul>
|
2014-03-23 00:22:25 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2014-04-26 02:42:16 +00:00
|
|
|
<ul>
|
|
|
|
<% gather.gatherers.each do |gatherer| %>
|
|
|
|
<li>
|
|
|
|
<% if gatherer.team == 2 %>
|
|
|
|
<%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %>
|
|
|
|
<% if gather.captain2 == gatherer %>
|
2014-05-09 21:38:14 +00:00
|
|
|
<%= icon 'star' %>
|
2014-04-26 02:42:16 +00:00
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
2014-04-26 02:42:16 +00:00
|
|
|
</li>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
2014-04-26 02:42:16 +00:00
|
|
|
</ul>
|
2014-03-23 00:22:25 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|