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

29 lines
1 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
%h3.page-title
= @user.name
- if @user.blocked?
%span.cred (Blocked)
2017-08-17 22:00:37 +05:30
- if @user.internal?
%span.cred (Internal)
2015-09-11 14:41:01 +05:30
- if @user.admin
%span.cred (Admin)
2018-11-08 19:23:39 +05:30
.float-right
2017-08-17 22:00:37 +05:30
- if @user != current_user && @user.can?(:log_in)
= 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-09-11 14:41:01 +05:30
%i.fa.fa-pencil-square-o
Edit
%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
= link_to "Account", admin_user_path(@user)
= nav_link(path: 'users#projects') do
2017-08-17 22:00:37 +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
= link_to "SSH keys", keys_admin_user_path(@user)
= nav_link(controller: :identities) do
= link_to "Identities", admin_user_identities_path(@user)
2017-08-17 22:00:37 +05:30
= nav_link(controller: :impersonation_tokens) do
= link_to "Impersonation Tokens", admin_user_impersonation_tokens_path(@user)
.append-bottom-default