2017-07-07 10:40:41 -04:00
|
|
|
- page_title "Members"
|
|
|
|
|
2016-12-22 17:38:27 -05:00
|
|
|
.row.prepend-top-default
|
2017-07-05 15:17:02 -04:00
|
|
|
.col-lg-12
|
|
|
|
%h4
|
2017-06-02 14:35:27 -04:00
|
|
|
Project members
|
2016-12-22 17:38:27 -05:00
|
|
|
- if can?(current_user, :admin_project_member, @project)
|
|
|
|
%p
|
2017-06-02 14:35:27 -04:00
|
|
|
You can add a new member to
|
2016-12-22 17:38:27 -05:00
|
|
|
%strong= @project.name
|
2017-06-02 14:35:27 -04:00
|
|
|
or share it with another group.
|
2017-01-19 19:11:12 -05:00
|
|
|
- else
|
|
|
|
%p
|
|
|
|
Members can be added by project
|
|
|
|
%i Masters
|
|
|
|
or
|
|
|
|
%i Owners
|
2017-06-02 14:35:27 -04:00
|
|
|
.light
|
2016-12-22 17:38:27 -05:00
|
|
|
- if can?(current_user, :admin_project_member, @project)
|
2017-10-11 05:07:19 -04:00
|
|
|
%ul.nav-links.gitlab-tabs{ role: 'tablist' }
|
2017-06-02 14:35:27 -04:00
|
|
|
%li.active{ role: 'presentation' }
|
2017-06-06 17:31:47 -04:00
|
|
|
%a{ href: '#add-member-pane', id: 'add-member-tab', data: { toggle: 'tab' }, role: 'tab' } Add member
|
2017-06-02 14:35:27 -04:00
|
|
|
- if @project.allowed_to_share_with_group?
|
|
|
|
%li{ role: 'presentation' }
|
2017-06-06 17:31:47 -04:00
|
|
|
%a{ href: '#share-with-group-pane', id: 'share-with-group-tab', data: { toggle: 'tab' }, role: 'tab' } Share with group
|
2017-06-02 14:35:27 -04:00
|
|
|
|
2017-10-11 05:07:19 -04:00
|
|
|
.tab-content.gitlab-tab-content
|
2017-06-02 14:35:27 -04:00
|
|
|
.tab-pane.active{ id: 'add-member-pane', role: 'tabpanel' }
|
|
|
|
= render 'projects/project_members/new_project_member', tab_title: 'Add member'
|
|
|
|
.tab-pane{ id: 'share-with-group-pane', role: 'tabpanel' }
|
|
|
|
= render 'projects/project_members/new_shared_group', tab_title: 'Share with group'
|
2016-12-22 17:38:27 -05:00
|
|
|
|
|
|
|
= render 'shared/members/requests', membership_source: @project, requesters: @requesters
|
2017-05-04 18:17:16 -04:00
|
|
|
.clearfix
|
2016-12-22 17:38:27 -05:00
|
|
|
%h5.member.existing-title
|
2016-12-28 13:54:40 -05:00
|
|
|
Existing members and groups
|
2016-12-22 17:38:27 -05:00
|
|
|
- if @group_links.any?
|
2016-12-23 13:23:04 -05:00
|
|
|
= render 'projects/project_members/groups', group_links: @group_links
|
2016-12-22 17:38:27 -05:00
|
|
|
|
2017-12-05 09:03:16 -05:00
|
|
|
= render 'projects/project_members/team', project: @project, members: @project_members
|
2016-12-22 17:38:27 -05:00
|
|
|
= paginate @project_members, theme: "gitlab"
|