- page_title "Groups"
= render 'dashboard/groups_head'

.gray-content-block
  - if current_user.can_create_group?
    %span.pull-right.hidden-xs
      = link_to new_group_path, class: "btn btn-new" do
        %i.fa.fa-plus
        New Group
  Welcome to the groups!
  %br
  Group members have access to all group projects.

%ul.content-list
  - @group_members.each do |group_member|
    - group = group_member.group
    = render 'shared/groups/group', group: group, group_member: group_member

= paginate @group_members