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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
2.7 KiB
Text
Raw Normal View History

2021-04-17 20:07:23 +05:30
- add_page_specific_style 'page_bundles/members'
2019-03-02 22:35:43 +05:30
- page_title _("Members")
2017-09-10 17:25:29 +05:30
2022-10-11 01:57:18 +05:30
= render_if_exists 'shared/ultimate_feature_removal_banner', project: @project
2022-06-21 17:19:12 +05:30
2020-07-28 23:09:34 +05:30
.row.gl-mt-3
2017-09-10 17:25:29 +05:30
.col-lg-12
2022-08-13 15:12:31 +05:30
.gl-display-flex.gl-flex-wrap
- if can_invite_members_for_project?(@project)
2021-03-08 18:12:59 +05:30
%h4
= _("Project members")
2022-08-13 15:12:31 +05:30
%p.gl-w-full.order-md-1
= project_member_header_subtext(@project)
.gl-display-flex.gl-flex-wrap.gl-align-items-flex-start.gl-ml-auto.gl-md-w-auto.gl-w-full.gl-mt-3
- invite_group_top_margin = ''
- if can_admin_project_member?(@project)
.js-import-project-members-trigger{ data: { classes: 'gl-md-w-auto gl-w-full' } }
2023-03-04 22:38:38 +05:30
.js-import-project-members-modal{ data: { project_id: @project.id, project_name: @project.name, reload_page_on_submit: true.to_s } }
2022-08-13 15:12:31 +05:30
- invite_group_top_margin = 'gl-md-mt-0 gl-mt-3'
- if @project.allowed_to_share_with_group?
.js-invite-group-trigger{ data: { classes: "gl-md-w-auto gl-w-full gl-md-ml-3 #{invite_group_top_margin}", display_text: _('Invite a group') } }
2023-03-04 22:38:38 +05:30
= render 'projects/invite_groups_modal', project: @project, reload_page_on_submit: true
2022-08-13 15:12:31 +05:30
- if can_admin_project_member?(@project)
.js-invite-members-trigger{ data: { variant: 'confirm',
classes: 'gl-md-w-auto gl-w-full gl-md-ml-3 gl-md-mt-0 gl-mt-3',
trigger_source: 'project-members-page',
display_text: _('Invite members') } }
- else
- if project_can_be_shared?
%h4
= _("Project members")
- if can?(current_user, :admin_project_member, @project)
%p.gl-w-full
= project_member_header_subtext(@project)
- else
%p.gl-w-full
= html_escape(_("Members can be added by project %{i_open}Maintainers%{i_close} or %{i_open}Owners%{i_close}")) % { i_open: '<i>'.html_safe, i_close: '</i>'.html_safe }
2017-09-10 17:25:29 +05:30
2021-09-04 01:27:46 +05:30
.js-project-members-list-app{ data: { members_data: project_members_app_data_json(@project,
members: @project_members,
invited: @invited_members,
2022-08-13 15:12:31 +05:30
access_requests: @requesters,
include_relations: @include_relations,
search: params[:search_groups]) } }
2022-05-07 20:08:51 +05:30
= gl_loading_icon(css_class: 'gl-my-5', size: 'md')