Gather Archive

Players in bold were captains for their respective teams.
<% @gathers.each do |gather| %> <% end %>
Date Team 1 Team 2
<%= link_to gather.updated_at.strftime("%Y/%m/%d %H:%M:%S"), gather %>
    <% gather.gatherers.each do |gatherer| %>
  • <% if gatherer.team == 1 %> <% if gather.captain1 == gatherer %> <% end %> <%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %> <% if gather.captain1 == gatherer %> <% end %> <% end %>
  • <% end %>
    <% gather.gatherers.each do |gatherer| %>
  • <% if gatherer.team == 2 %> <% if gather.captain2 == gatherer %> <% end %> <%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %> <% if gather.captain2 == gatherer %> <% end %> <% end %>
  • <% end %>