index.html.haml 1.66 KB
Newer Older
1 2
- page_title "Members"

3
.row.prepend-top-default
4 5
  .col-lg-12
    %h4
6
      Project members
7 8
    - if can?(current_user, :admin_project_member, @project)
      %p
9
        You can add a new member to
10
        %strong= @project.name
11
        or share it with another group.
12 13 14 15 16 17
    - else
      %p
        Members can be added by project
        %i Masters
        or
        %i Owners
18
    .light
19
      - if can?(current_user, :admin_project_member, @project)
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
20
        %ul.nav-links.gitlab-tabs{ role: 'tablist' }
21
          %li.active{ role: 'presentation' }
22
            %a{ href: '#add-member-pane', id: 'add-member-tab', data: { toggle: 'tab' }, role: 'tab' } Add member
23 24
          - if @project.allowed_to_share_with_group?
            %li{ role: 'presentation' }
25
              %a{ href: '#share-with-group-pane', id: 'share-with-group-tab', data: { toggle: 'tab' }, role: 'tab' } Share with group
26

Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
27
        .tab-content.gitlab-tab-content
28 29 30 31
          .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'
32 33

        = render 'shared/members/requests', membership_source: @project, requesters: @requesters
34
        .clearfix
35
          %h5.member.existing-title
36
            Existing members and groups
37
        - if @group_links.any?
38
          = render 'projects/project_members/groups', group_links: @group_links
39

40
    = render 'projects/project_members/team', project: @project, members: @project_members
41
    = paginate @project_members, theme: "gitlab"