Add tabs to switch between current/invited members
This commit is contained in:
parent
caac3104c4
commit
ed29ce3622
1 changed files with 46 additions and 41 deletions
|
@ -1,5 +1,6 @@
|
|||
- page_title "Members"
|
||||
- can_manage_members = can?(current_user, :admin_group_member, @group)
|
||||
- show_invited_members = can_manage_members && @invited_members.exists?
|
||||
|
||||
.project-members-page.prepend-top-default
|
||||
%h4
|
||||
|
@ -16,9 +17,15 @@
|
|||
|
||||
= render_if_exists 'groups/group_members/ldap_sync'
|
||||
|
||||
.clearfix
|
||||
%h5.member.existing-title
|
||||
Existing members
|
||||
%ul.nav-links.mobile-separator.nav.nav-tabs.clearfix
|
||||
%li.nav-item
|
||||
= link_to "Existing members", "#existing_members", class: "nav-link active", 'data-toggle' => 'tab'
|
||||
- if show_invited_members
|
||||
%li.nav-item
|
||||
= link_to "Invited members", "#invited_members", class: "nav-link", 'data-toggle' => 'tab'
|
||||
|
||||
.tab-content
|
||||
#existing_members.tab-pane.active
|
||||
.card
|
||||
.card-header.flex-project-members-panel
|
||||
%span.flex-project-title
|
||||
|
@ -38,10 +45,8 @@
|
|||
= render partial: 'shared/members/member', collection: @members, as: :member
|
||||
= paginate @members, theme: 'gitlab'
|
||||
|
||||
- if can_manage_members && @invited_members.exists?
|
||||
.clearfix
|
||||
%h5.member.existing-title
|
||||
Invited members
|
||||
- if show_invited_members
|
||||
#invited_members.tab-pane
|
||||
.card
|
||||
.card-header.flex-project-members-panel
|
||||
%span.flex-project-title
|
||||
|
|
Loading…
Reference in a new issue