Gather Archive

Players starred 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 %> <%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %> <% if gather.captain1 == gatherer %> <%= icon 'star' %> <% end %> <% end %>
  • <% end %>
    <% gather.gatherers.each do |gatherer| %>
  • <% if gatherer.team == 2 %> <%= link_to gatherer.user.to_s, User.find_by_username(gatherer.user.to_s) %> <% if gather.captain2 == gatherer %> <%= icon 'star' %> <% end %> <% end %>
  • <% end %>