2021-07-19 18:08:23 +00:00
|
|
|
.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-06-08 21:08:52 +00:00
|
|
|
%h1.page-title.gl-font-size-h-display.gl-m-0
|
2021-07-19 18:08:23 +00:00
|
|
|
= @user.name
|
|
|
|
- if @user.blocked_pending_approval?
|
2022-01-12 09:15:13 +00:00
|
|
|
%span.gl-text-red-500
|
2021-07-19 18:08:23 +00:00
|
|
|
= s_('AdminUsers|(Pending approval)')
|
|
|
|
- elsif @user.banned?
|
2022-01-12 09:15:13 +00:00
|
|
|
%span.gl-text-red-500
|
2021-07-19 18:08:23 +00:00
|
|
|
= s_('AdminUsers|(Banned)')
|
|
|
|
- elsif @user.blocked?
|
2022-01-12 09:15:13 +00:00
|
|
|
%span.gl-text-red-500
|
2021-07-19 18:08:23 +00:00
|
|
|
= s_('AdminUsers|(Blocked)')
|
|
|
|
- if @user.internal?
|
2022-01-12 09:15:13 +00:00
|
|
|
%span.gl-text-red-500
|
2021-07-19 18:08:23 +00:00
|
|
|
= s_('AdminUsers|(Internal)')
|
|
|
|
- if @user.admin
|
2022-01-12 09:15:13 +00:00
|
|
|
%span.gl-text-red-500
|
2021-07-19 18:08:23 +00:00
|
|
|
= s_('AdminUsers|(Admin)')
|
|
|
|
- if @user.deactivated?
|
2022-01-12 09:15:13 +00:00
|
|
|
%span.gl-text-red-500
|
2021-07-19 18:08:23 +00:00
|
|
|
= s_('AdminUsers|(Deactivated)')
|
2022-01-12 09:15:13 +00:00
|
|
|
- if @user.access_locked?
|
|
|
|
%span.gl-text-red-500
|
|
|
|
= s_('AdminUsers|(Locked)')
|
2021-07-19 18:08:23 +00:00
|
|
|
= render_if_exists 'admin/users/auditor_user_badge'
|
|
|
|
= render_if_exists 'admin/users/gma_user_badge'
|
2015-06-22 15:12:20 +00:00
|
|
|
|
2021-07-19 18:08:23 +00:00
|
|
|
.gl-my-3.gl-display-flex.gl-flex-wrap.gl-my-n2.gl-mx-n2
|
2022-07-08 00:09:36 +00:00
|
|
|
.gl-p-2
|
|
|
|
#js-admin-user-actions{ data: admin_user_actions_data_attributes(@user) }
|
2021-07-02 18:08:28 +00:00
|
|
|
- if @user != current_user
|
2022-07-08 00:09:36 +00:00
|
|
|
- if impersonation_enabled? && @user.can?(:log_in)
|
|
|
|
.gl-p-2
|
2021-07-19 18:08:23 +00:00
|
|
|
= link_to _('Impersonate'), impersonate_admin_user_path(@user), method: :post, class: "btn btn-default gl-button", data: { qa_selector: 'impersonate_user_link' }
|
2022-07-08 00:09:36 +00:00
|
|
|
- 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-07-19 18:08:23 +00:00
|
|
|
= _('Confirm user')
|
2022-03-10 03:08:56 +00:00
|
|
|
.gl-p-2
|
2022-07-08 00:09:36 +00:00
|
|
|
= link_to _('New identity'), new_admin_user_identity_path(@user), class: "btn btn-primary gl-button"
|
2021-09-28 12:11:10 +00:00
|
|
|
= 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-03 21:09:39 +00:00
|
|
|
- if impersonation_enabled?
|
2021-09-28 12:11:10 +00:00
|
|
|
= gl_tab_link_to _("Impersonation Tokens"), admin_user_impersonation_tokens_path(@user)
|
2020-06-22 15:09:27 +00:00
|
|
|
.gl-mb-3
|