2015-06-22 11:12:20 -04:00
|
|
|
%h3.page-title
|
|
|
|
= @user.name
|
|
|
|
- if @user.blocked?
|
|
|
|
%span.cred (Blocked)
|
2017-03-09 17:06:05 -05:00
|
|
|
- if @user.internal?
|
|
|
|
%span.cred (Internal)
|
2015-06-22 11:12:20 -04:00
|
|
|
- if @user.admin
|
|
|
|
%span.cred (Admin)
|
|
|
|
|
|
|
|
.pull-right
|
2017-03-09 17:06:05 -05:00
|
|
|
- if @user != current_user && @user.can?(:log_in)
|
2016-01-08 15:40:25 -05: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 11:12:20 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
|
|
|
Edit
|
2015-06-22 11:52:22 -04:00
|
|
|
%hr
|
2016-01-13 11:13:36 -05:00
|
|
|
%ul.nav-links
|
2015-06-22 11:12:20 -04:00
|
|
|
= nav_link(path: 'users#show') do
|
|
|
|
= link_to "Account", admin_user_path(@user)
|
|
|
|
= nav_link(path: 'users#projects') do
|
2016-12-28 17:22:57 -05:00
|
|
|
= link_to "Groups and projects", projects_admin_user_path(@user)
|
2015-06-22 11:12:20 -04: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 12:47:06 -05:00
|
|
|
= nav_link(controller: :impersonation_tokens) do
|
2017-03-01 11:59:03 -05:00
|
|
|
= link_to "Impersonation Tokens", admin_user_impersonation_tokens_path(@user)
|
2016-01-13 11:13:36 -05:00
|
|
|
.append-bottom-default
|