app/views/group_assignment_invitations/_group_assignment_team.erb
<div class="team-panel">
<div class="boxed-group">
<%= form_tag({ controller: :group_assignment_invitations, action: :accept_invitation}, :class => "team-actions-form", method: :patch) do %>
<%= hidden_field_tag 'group[id]', group.id %>
<% if group_assignment.max_members.present? && group.repo_accesses.count >= group_assignment.max_members %>
<%= submit_tag 'Full', class: 'btn btn-sm boxed-group-action', disabled: true %>
<% else %>
<%= submit_tag 'Join', class: 'btn btn-sm boxed-group-action' %>
<% end %>
<% end %>
<h3><%= group.title %>
<span class="team-description"><%= pluralize(group.repo_accesses.count, 'student') %></span>
</h3>
<div class="boxed-group-inner clearfix">
<div class="team-members">
<ul class="member-list" group-id="<%= group.slug %>">
<% group.repo_accesses.includes(:user).limit(5).each do |repo_access| %>
<% student = repo_access.user %>
<li class="member">
<%= link_to student.github_user.html_url, class: "tooltipped tooltipped-s", 'aria-label' => student.github_user.login, 'user-id' => student.id do %>
<%= image_tag student.github_user.github_avatar_url(60), class: 'avatar avatar-small ', height: 30, width: 30, alt: "@#{student.github_user.login}" %>
<% end %>
</li>
<% end %>
<% if group.repo_accesses.count > 5 %>
<li class="member">
<%= image_tag 'student-ellipse@2x.png', class: 'avatar avatar-small', height: 30, width: 30, alt: 'student ellipse' %>
</li>
<% end %>
</ul>
</div>
</div>
</div>
</div>