debian-mirror-gitlab/app/views/admin/users/_head.html.haml

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

52 lines
2.4 KiB
Text
Raw Normal View History

2021-09-30 23:02:18 +05:30
.gl-display-flex.gl-flex-wrap.gl-justify-content-space-between.gl-align-items-center.gl-py-3.gl-mb-5.gl-border-b-solid.gl-border-gray-100.gl-border-b-1
.gl-my-3
2022-07-23 23:45:48 +05:30
%h1.page-title.gl-font-size-h-display.gl-m-0
2021-09-30 23:02:18 +05:30
= @user.name
- if @user.blocked_pending_approval?
2022-03-02 08:16:31 +05:30
%span.gl-text-red-500
2021-09-30 23:02:18 +05:30
= s_('AdminUsers|(Pending approval)')
- elsif @user.banned?
2022-03-02 08:16:31 +05:30
%span.gl-text-red-500
2021-09-30 23:02:18 +05:30
= s_('AdminUsers|(Banned)')
- elsif @user.blocked?
2022-03-02 08:16:31 +05:30
%span.gl-text-red-500
2021-09-30 23:02:18 +05:30
= s_('AdminUsers|(Blocked)')
- if @user.internal?
2022-03-02 08:16:31 +05:30
%span.gl-text-red-500
2021-09-30 23:02:18 +05:30
= s_('AdminUsers|(Internal)')
- if @user.admin
2022-03-02 08:16:31 +05:30
%span.gl-text-red-500
2021-09-30 23:02:18 +05:30
= s_('AdminUsers|(Admin)')
- if @user.deactivated?
2022-03-02 08:16:31 +05:30
%span.gl-text-red-500
2021-09-30 23:02:18 +05:30
= s_('AdminUsers|(Deactivated)')
2022-03-02 08:16:31 +05:30
- if @user.access_locked?
%span.gl-text-red-500
= s_('AdminUsers|(Locked)')
2021-09-30 23:02:18 +05:30
= render_if_exists 'admin/users/auditor_user_badge'
= render_if_exists 'admin/users/gma_user_badge'
2015-09-11 14:41:01 +05:30
2021-09-30 23:02:18 +05:30
.gl-my-3.gl-display-flex.gl-flex-wrap.gl-my-n2.gl-mx-n2
2022-08-13 15:12:31 +05:30
.gl-p-2
#js-admin-user-actions{ data: admin_user_actions_data_attributes(@user) }
2021-09-30 23:02:18 +05:30
- if @user != current_user
2023-01-13 00:05:48 +05:30
- if impersonation_enabled?
2022-08-13 15:12:31 +05:30
.gl-p-2
2023-01-13 00:05:48 +05:30
%span.btn-group{ class: !@can_impersonate ? 'has-tooltip' : nil, title: @impersonation_error_text }
= render Pajamas::ButtonComponent.new(disabled: !@can_impersonate, method: :post, href: impersonate_admin_user_path(@user), button_options: { data: { qa_selector: 'impersonate_user_link', testid: 'impersonate_user_link' } }) do
= _('Impersonate')
2022-08-13 15:12:31 +05:30
- if can_force_email_confirmation?(@user)
.gl-p-2
= render Pajamas::ButtonComponent.new(variant: :default, button_options: { class: 'js-confirm-modal-button', data: confirm_user_data(@user) }) do
2021-09-30 23:02:18 +05:30
= _('Confirm user')
2022-05-07 20:08:51 +05:30
.gl-p-2
2022-08-13 15:12:31 +05:30
= link_to _('New identity'), new_admin_user_identity_path(@user), class: "btn btn-primary gl-button"
2021-11-18 22:05:49 +05:30
= gl_tabs_nav do
= gl_tab_link_to _("Account"), admin_user_path(@user)
= gl_tab_link_to _("Groups and projects"), projects_admin_user_path(@user)
= gl_tab_link_to _("SSH keys"), keys_admin_user_path(@user)
= gl_tab_link_to _("Identities"), admin_user_identities_path(@user)
2021-08-04 16:29:09 +05:30
- if impersonation_enabled?
2022-08-27 11:52:29 +05:30
= gl_tab_link_to _("Impersonation Tokens"), admin_user_impersonation_tokens_path(@user), data: { qa_selector: 'impersonation_tokens_tab' }
2020-07-28 23:09:34 +05:30
.gl-mb-3