2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Members"
|
2018-04-20 05:25:22 -04:00
|
|
|
- can_manage_members = can?(current_user, :admin_group_member, @group)
|
2014-02-13 04:00:44 -05:00
|
|
|
|
2016-09-02 09:19:11 -04:00
|
|
|
.project-members-page.prepend-top-default
|
|
|
|
%h4
|
|
|
|
Members
|
|
|
|
%hr
|
2018-04-20 05:25:22 -04:00
|
|
|
- if can_manage_members
|
2016-09-02 09:19:11 -04:00
|
|
|
.project-members-new.append-bottom-default
|
2016-09-05 10:45:23 -04:00
|
|
|
%p.clearfix
|
2017-01-30 02:41:57 -05:00
|
|
|
Add new member to
|
2016-09-02 09:19:11 -04:00
|
|
|
%strong= @group.name
|
|
|
|
= render "new_group_member"
|
2015-03-13 11:27:51 -04:00
|
|
|
|
2016-06-27 10:20:57 -04:00
|
|
|
= render 'shared/members/requests', membership_source: @group, requesters: @requesters
|
2016-04-18 12:53:32 -04:00
|
|
|
|
2018-04-20 05:25:22 -04:00
|
|
|
.clearfix
|
2016-09-02 09:19:11 -04:00
|
|
|
%h5.member.existing-title
|
2017-01-30 02:41:57 -05:00
|
|
|
Existing members
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
2018-05-11 09:51:58 -04:00
|
|
|
.card-header.flex-project-members-panel
|
2018-04-20 05:25:22 -04:00
|
|
|
%span.flex-project-title
|
|
|
|
Members with access to
|
|
|
|
%strong= @group.name
|
2016-08-22 08:56:07 -04:00
|
|
|
%span.badge= @members.total_count
|
2018-04-20 05:25:22 -04:00
|
|
|
= form_tag group_group_members_path(@group), method: :get, class: 'form-inline member-search-form flex-project-members-form' do
|
|
|
|
.form-group
|
|
|
|
= search_field_tag :search, params[:search], { placeholder: 'Find existing members by name', class: 'form-control', spellcheck: false }
|
|
|
|
%button.member-search-btn{ type: "submit", "aria-label" => "Submit search" }
|
|
|
|
= icon("search")
|
|
|
|
- if can_manage_members
|
|
|
|
= render 'shared/members/filter_2fa_dropdown'
|
|
|
|
= render 'shared/members/sort_dropdown'
|
2017-07-05 15:17:02 -04:00
|
|
|
%ul.content-list.members-list
|
2016-06-27 10:20:57 -04:00
|
|
|
= render partial: 'shared/members/member', collection: @members, as: :member
|
|
|
|
= paginate @members, theme: 'gitlab'
|