debian-mirror-gitlab/app/views/projects/project_members/index.html.haml

37 lines
1.8 KiB
Text
Raw Normal View History

2019-03-02 22:35:43 +05:30
- page_title _("Members")
2017-09-10 17:25:29 +05:30
.row.prepend-top-default
.col-lg-12
%h4
2019-03-02 22:35:43 +05:30
= _("Project members")
2017-09-10 17:25:29 +05:30
- if can?(current_user, :admin_project_member, @project)
%p
2019-05-18 00:54:41 +05:30
= _("You can invite a new member to <strong>%{project_name}</strong> or invite another group.").html_safe % { project_name: sanitize(@project.name, tags: []) }
2017-09-10 17:25:29 +05:30
- else
%p
2019-03-02 22:35:43 +05:30
= _("Members can be added by project <i>Maintainers</i> or <i>Owners</i>").html_safe
2017-09-10 17:25:29 +05:30
.light
- if can?(current_user, :admin_project_member, @project)
2018-11-08 19:23:39 +05:30
%ul.nav-links.nav.nav-tabs.gitlab-tabs{ role: 'tablist' }
%li.nav-tab{ role: 'presentation' }
2019-03-02 22:35:43 +05:30
%a.nav-link.active{ href: '#invite-member-pane', id: 'invite-member-tab', data: { toggle: 'tab' }, role: 'tab' }= _("Invite member")
2017-09-10 17:25:29 +05:30
- if @project.allowed_to_share_with_group?
2018-11-08 19:23:39 +05:30
%li.nav-tab{ role: 'presentation' }
2019-03-02 22:35:43 +05:30
%a.nav-link{ href: '#invite-group-pane', id: 'invite-group-tab', data: { toggle: 'tab' }, role: 'tab' }= _("Invite group")
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
.tab-content.gitlab-tab-content
2018-11-20 20:47:30 +05:30
.tab-pane.active{ id: 'invite-member-pane', role: 'tabpanel' }
2019-03-02 22:35:43 +05:30
= render 'projects/project_members/new_project_member', tab_title: _('Invite member')
2018-11-20 20:47:30 +05:30
.tab-pane{ id: 'invite-group-pane', role: 'tabpanel' }
2019-03-02 22:35:43 +05:30
= render 'projects/project_members/new_project_group', tab_title: _('Invite group')
2017-09-10 17:25:29 +05:30
= render 'shared/members/requests', membership_source: @project, requesters: @requesters
.clearfix
%h5.member.existing-title
2019-03-02 22:35:43 +05:30
= _("Existing members and groups")
2017-09-10 17:25:29 +05:30
- if @group_links.any?
= render 'projects/project_members/groups', group_links: @group_links
2018-03-17 18:26:18 +05:30
= render 'projects/project_members/team', project: @project, members: @project_members
2017-09-10 17:25:29 +05:30
= paginate @project_members, theme: "gitlab"