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

43 lines
1.6 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
%h3.page-title
= @user.name
2021-01-03 14:25:43 +05:30
- if @user.blocked_pending_approval?
%span.cred
= s_('AdminUsers|(Pending approval)')
2021-06-08 01:23:25 +05:30
- elsif @user.banned?
%span.cred
= s_('AdminUsers|(Banned)')
2021-01-03 14:25:43 +05:30
- elsif @user.blocked?
%span.cred
= s_('AdminUsers|(Blocked)')
2017-08-17 22:00:37 +05:30
- if @user.internal?
2021-01-03 14:25:43 +05:30
%span.cred
= s_('AdminUsers|(Internal)')
2015-09-11 14:41:01 +05:30
- if @user.admin
2021-01-03 14:25:43 +05:30
%span.cred
= s_('AdminUsers|(Admin)')
2019-12-21 20:55:43 +05:30
- if @user.deactivated?
2021-01-03 14:25:43 +05:30
%span.cred
= s_('AdminUsers|(Deactivated)')
2021-03-11 19:13:27 +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
2018-11-08 19:23:39 +05:30
.float-right
2019-02-15 15:39:39 +05:30
- if impersonation_enabled? && @user != current_user && @user.can?(:log_in)
2021-04-29 21:17:54 +05:30
= link_to _('Impersonate'), impersonate_admin_user_path(@user), method: :post, class: "btn btn-info gl-button btn-grouped", data: { qa_selector: 'impersonate_user_link' }
2020-10-24 23:57:45 +05:30
= link_to edit_admin_user_path(@user), class: "btn btn-default gl-button btn-grouped" do
2021-04-29 21:17:54 +05:30
= sprite_icon('pencil-square', css_class: 'gl-icon gl-button-icon')
2020-10-24 23:57:45 +05:30
= _('Edit')
2015-09-11 14:41:01 +05:30
%hr
2018-11-08 19:23:39 +05:30
%ul.nav-links.nav.nav-tabs
2015-09-11 14:41:01 +05:30
= nav_link(path: 'users#show') do
2021-04-29 21:17:54 +05:30
= link_to _("Account"), admin_user_path(@user)
2015-09-11 14:41:01 +05:30
= nav_link(path: 'users#projects') do
2021-04-29 21:17:54 +05:30
= link_to _("Groups and projects"), projects_admin_user_path(@user)
2015-09-11 14:41:01 +05:30
= nav_link(path: 'users#keys') do
2021-04-29 21:17:54 +05:30
= link_to _("SSH keys"), keys_admin_user_path(@user)
2015-09-11 14:41:01 +05:30
= nav_link(controller: :identities) do
2021-04-29 21:17:54 +05:30
= link_to _("Identities"), admin_user_identities_path(@user)
2017-08-17 22:00:37 +05:30
= nav_link(controller: :impersonation_tokens) do
2021-04-29 21:17:54 +05:30
= link_to _("Impersonation Tokens"), admin_user_impersonation_tokens_path(@user)
2020-07-28 23:09:34 +05:30
.gl-mb-3