debian-mirror-gitlab/app/views/groups/group_members/index.html.haml

44 lines
2.8 KiB
Text
Raw Normal View History

2021-04-17 20:07:23 +05:30
- add_page_specific_style 'page_bundles/members'
2020-10-24 23:57:45 +05:30
- page_title _('Group members')
2021-09-04 01:27:46 +05:30
- groups_select_tag_data = group_select_data(@group).merge({ skip_groups: @skip_groups })
2014-09-02 18:07:02 +05:30
2021-03-08 18:12:59 +05:30
.row.gl-mt-3
.col-lg-12
.gl-display-flex.gl-flex-wrap
2021-10-27 15:23:28 +05:30
- if can_admin_group_member?(@group)
2021-03-08 18:12:59 +05:30
.gl-w-half.gl-xs-w-full
%h4
= _('Group members')
%p
= html_escape(_('You can invite a new member to %{strong_start}%{group_name}%{strong_end}.')) % { group_name: @group.name, strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe }
2021-06-08 01:23:25 +05:30
- if Feature.enabled?(:invite_members_group_modal, @group)
2021-03-08 18:12:59 +05:30
.gl-w-half.gl-xs-w-full
2021-04-17 20:07:23 +05:30
.gl-display-flex.gl-flex-wrap.gl-justify-content-end.gl-mb-3
.js-invite-group-trigger{ data: { classes: 'gl-mt-3 gl-sm-w-auto gl-w-full', display_text: _('Invite a group') } }
2021-09-04 01:27:46 +05:30
.js-invite-members-trigger{ data: { variant: 'success',
classes: 'gl-mt-3 gl-sm-w-auto gl-w-full gl-sm-ml-3',
trigger_source: 'group-members-page',
display_text: _('Invite members') } }
2021-03-11 19:13:27 +05:30
= render 'groups/invite_members_modal', group: @group
2021-10-27 15:23:28 +05:30
- if can_admin_group_member?(@group) && Feature.disabled?(:invite_members_group_modal, @group)
2021-03-08 18:12:59 +05:30
%hr.gl-mt-4
%ul.nav-links.nav.nav-tabs.gitlab-tabs{ role: 'tablist' }
%li.nav-tab{ role: 'presentation' }
%a.nav-link.active{ href: '#invite-member-pane', id: 'invite-member-tab', data: { toggle: 'tab' }, role: 'tab' }= _('Invite member')
%li.nav-tab{ role: 'presentation' }
%a.nav-link{ href: '#invite-group-pane', id: 'invite-group-tab', data: { toggle: 'tab', qa_selector: 'invite_group_tab' }, role: 'tab' }= _('Invite group')
.tab-content.gitlab-tab-content
.tab-pane.active{ id: 'invite-member-pane', role: 'tabpanel' }
= render_invite_member_for_group(@group, @group_member.access_level)
.tab-pane{ id: 'invite-group-pane', role: 'tabpanel' }
2021-09-04 01:27:46 +05:30
= render 'shared/members/invite_group', submit_url: group_group_links_path(@group), access_levels: GroupMember.access_level_roles, default_access_level: @group_member.access_level, group_link_field: 'shared_with_group_id', group_access_field: 'shared_group_access', groups_select_tag_data: groups_select_tag_data
2015-04-26 12:48:37 +05:30
2021-03-08 18:12:59 +05:30
= render_if_exists 'groups/group_members/ldap_sync'
2019-09-04 21:01:54 +05:30
2021-10-27 15:23:28 +05:30
.js-group-members-list-app{ data: { members_data: group_members_app_data(@group,
members: @members,
invited: @invited_members,
access_requests: @requesters).to_json } }
2021-09-04 01:27:46 +05:30
.loading
.gl-spinner.gl-spinner-md