2015-06-22 15:12:20 +00:00
|
|
|
%h3.page-title
|
|
|
|
= @user.name
|
|
|
|
- if @user.blocked?
|
|
|
|
%span.cred (Blocked)
|
2017-03-09 22:06:05 +00:00
|
|
|
- if @user.internal?
|
|
|
|
%span.cred (Internal)
|
2015-06-22 15:12:20 +00:00
|
|
|
- if @user.admin
|
|
|
|
%span.cred (Admin)
|
2019-05-17 13:27:58 +00:00
|
|
|
= render_if_exists 'admin/users/audtior_user_badge'
|
2015-06-22 15:12:20 +00:00
|
|
|
|
2018-04-09 17:42:45 +00:00
|
|
|
.float-right
|
2018-11-24 12:39:16 +00:00
|
|
|
- if impersonation_enabled? && @user != current_user && @user.can?(:log_in)
|
2016-01-08 20:40:25 +00:00
|
|
|
= link_to 'Impersonate', impersonate_admin_user_path(@user), method: :post, class: "btn btn-nr btn-grouped btn-info"
|
|
|
|
= link_to edit_admin_user_path(@user), class: "btn btn-nr btn-grouped" do
|
2015-06-22 15:12:20 +00:00
|
|
|
%i.fa.fa-pencil-square-o
|
|
|
|
Edit
|
2015-06-22 15:52:22 +00:00
|
|
|
%hr
|
2018-04-20 03:34:20 +00:00
|
|
|
%ul.nav-links.nav.nav-tabs
|
2015-06-22 15:12:20 +00:00
|
|
|
= nav_link(path: 'users#show') do
|
|
|
|
= link_to "Account", admin_user_path(@user)
|
|
|
|
= nav_link(path: 'users#projects') do
|
2016-12-28 22:22:57 +00:00
|
|
|
= link_to "Groups and projects", projects_admin_user_path(@user)
|
2015-06-22 15:12:20 +00:00
|
|
|
= nav_link(path: 'users#keys') do
|
|
|
|
= link_to "SSH keys", keys_admin_user_path(@user)
|
|
|
|
= nav_link(controller: :identities) do
|
|
|
|
= link_to "Identities", admin_user_identities_path(@user)
|
2017-02-23 17:47:06 +00:00
|
|
|
= nav_link(controller: :impersonation_tokens) do
|
2017-03-01 16:59:03 +00:00
|
|
|
= link_to "Impersonation Tokens", admin_user_impersonation_tokens_path(@user)
|
2016-01-13 16:13:36 +00:00
|
|
|
.append-bottom-default
|