2020-07-28 23:09:34 +05:30
|
|
|
- add_to_breadcrumbs _("Users"), admin_users_path
|
2018-03-17 18:26:18 +05:30
|
|
|
- breadcrumb_title @user.name
|
2020-07-28 23:09:34 +05:30
|
|
|
- page_title @user.name, _("Users")
|
2015-09-11 14:41:01 +05:30
|
|
|
= render 'admin/users/head'
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-6
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2015-09-11 14:41:01 +05:30
|
|
|
= @user.name
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2018-03-27 19:54:05 +05:30
|
|
|
= image_tag avatar_icon_for_user(@user, 60), class: "avatar s60"
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Profile page:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
|
|
|
= link_to user_path(@user) do
|
|
|
|
= @user.username
|
2021-09-30 23:02:18 +05:30
|
|
|
-# Rendered on mobile only so order of cards can be different on desktop vs mobile
|
|
|
|
.gl-md-display-none
|
|
|
|
= render 'admin/users/profile', user: @user
|
|
|
|
= render 'admin/users/user_detail_note'
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2021-06-08 01:23:25 +05:30
|
|
|
= _('Account:')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Name:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong= @user.name
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Username:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
|
|
|
= @user.username
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Email:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
2019-09-30 21:07:59 +05:30
|
|
|
= render partial: 'shared/email_with_badge', locals: { email: mail_to(@user.email), verified: @user.confirmed? }
|
2015-09-11 14:41:01 +05:30
|
|
|
- @user.emails.each do |email|
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Secondary email:')
|
2019-09-30 21:07:59 +05:30
|
|
|
%strong
|
|
|
|
= render partial: 'shared/email_with_badge', locals: { email: email.email, verified: email.confirmed? }
|
2021-06-08 01:23:25 +05:30
|
|
|
= link_to remove_email_admin_user_path(@user, email), data: { confirm: _("Are you sure you want to remove %{email}?") % { email: email.email } }, method: :delete, class: "btn btn-sm btn-danger gl-button btn-icon float-right", title: _('Remove secondary email'), id: "remove_email_#{email.id}" do
|
2020-11-24 15:15:51 +05:30
|
|
|
= sprite_icon('close', size: 16, css_class: 'gl-icon')
|
2018-11-20 20:47:30 +05:30
|
|
|
%li
|
|
|
|
%span.light ID:
|
2021-02-22 17:27:13 +05:30
|
|
|
%strong{ data: { qa_selector: 'user_id_content' } }
|
2018-11-20 20:47:30 +05:30
|
|
|
= @user.id
|
2020-11-24 15:15:51 +05:30
|
|
|
%li
|
|
|
|
%span.light= _('Namespace ID:')
|
|
|
|
%strong
|
|
|
|
= @user.namespace_id
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
%li.two-factor-status
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Two-factor Authentication:')
|
2017-08-17 22:00:37 +05:30
|
|
|
%strong{ class: @user.two_factor_enabled? ? 'cgreen' : 'cred' }
|
2015-09-11 14:41:01 +05:30
|
|
|
- if @user.two_factor_enabled?
|
2021-06-08 01:23:25 +05:30
|
|
|
= _('Enabled')
|
|
|
|
= link_to _('Disable'), disable_two_factor_admin_user_path(@user), data: { confirm: _('Are you sure?') }, method: :patch, class: 'btn gl-button btn-sm btn-danger float-right', title: _('Disable Two-factor Authentication')
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2021-06-08 01:23:25 +05:30
|
|
|
= _('Disabled')
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
= render_if_exists 'admin/namespace_plan_info', namespace: @user.namespace
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('External User:')
|
2016-06-02 11:05:42 +05:30
|
|
|
%strong
|
2021-06-08 01:23:25 +05:30
|
|
|
= @user.external? ? _('Yes') : _('No')
|
|
|
|
|
|
|
|
= render_if_exists 'admin/users/provisioned_by', user: @user
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Can create groups:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
2021-06-08 01:23:25 +05:30
|
|
|
= @user.can_create_group ? _('Yes') : _('No')
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Personal projects limit:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
|
|
|
= @user.projects_limit
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Member since:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
2016-01-14 18:37:52 +05:30
|
|
|
= @user.created_at.to_s(:medium)
|
2015-09-11 14:41:01 +05:30
|
|
|
- if @user.confirmed_at
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Confirmed at:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
2016-01-14 18:37:52 +05:30
|
|
|
= @user.confirmed_at.to_s(:medium)
|
2015-09-11 14:41:01 +05:30
|
|
|
- else
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.ligh= _('Confirmed:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong.cred
|
2021-06-08 01:23:25 +05:30
|
|
|
= _('No')
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Current sign-in IP:')
|
2016-01-14 18:37:52 +05:30
|
|
|
%strong
|
2020-07-28 23:09:34 +05:30
|
|
|
= @user.current_sign_in_ip || _('never')
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Current sign-in at:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
2020-07-28 23:09:34 +05:30
|
|
|
= @user.current_sign_in_at&.to_s(:medium) || _('never')
|
2016-01-14 18:37:52 +05:30
|
|
|
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Last sign-in IP:')
|
2016-01-14 18:37:52 +05:30
|
|
|
%strong
|
2020-07-28 23:09:34 +05:30
|
|
|
= @user.last_sign_in_ip || _('never')
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Last sign-in at:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
2020-07-28 23:09:34 +05:30
|
|
|
= @user.last_sign_in_at&.to_s(:medium) || _('never')
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Sign-in count:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
|
|
|
= @user.sign_in_count
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
%li
|
|
|
|
%span.light= _("Highest role:")
|
|
|
|
%strong
|
|
|
|
= Gitlab::Access.human_access_with_none(@user.highest_role)
|
|
|
|
|
2019-09-04 21:01:54 +05:30
|
|
|
= render_if_exists 'admin/users/using_license_seat', user: @user
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if @user.ldap_user?
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('LDAP uid:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
|
|
|
= @user.ldap_identity.extern_uid
|
|
|
|
|
|
|
|
- if @user.created_by
|
|
|
|
%li
|
2021-06-08 01:23:25 +05:30
|
|
|
%span.light= _('Created by:')
|
2015-09-11 14:41:01 +05:30
|
|
|
%strong
|
|
|
|
= link_to @user.created_by.name, [:admin, @user.created_by]
|
|
|
|
|
2019-09-30 21:07:59 +05:30
|
|
|
= render_if_exists 'namespaces/shared_runner_status', namespace: @user.namespace
|
2019-07-31 22:56:46 +05:30
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
= render_if_exists 'admin/users/credit_card_info', user: @user, link_to_match_page: true
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
= render 'shared/custom_attributes', custom_attributes: @user.custom_attributes
|
|
|
|
|
2021-09-30 23:02:18 +05:30
|
|
|
-# Rendered on desktop only so order of cards can be different on desktop vs mobile
|
|
|
|
.col-md-6.gl-display-none.gl-md-display-block
|
|
|
|
= render 'admin/users/profile', user: @user
|
|
|
|
= render 'admin/users/user_detail_note'
|
2019-12-21 20:55:43 +05:30
|
|
|
= render partial: 'admin/users/modals'
|