mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 17:16:08 +10:00
Modifies the existing "login as" feature to be called impersonation, as well as keeping track of who is impersonating to revert back to that user without having to log out.
26 lines
886 B
Plaintext
26 lines
886 B
Plaintext
%h3.page-title
|
|
= @user.name
|
|
- if @user.blocked?
|
|
%span.cred (Blocked)
|
|
- if @user.admin
|
|
%span.cred (Admin)
|
|
|
|
.pull-right
|
|
- unless @user == current_user
|
|
= link_to 'Impersonate', impersonate_admin_user_path(@user), method: :post, class: "btn btn-grouped btn-info"
|
|
= link_to edit_admin_user_path(@user), class: "btn btn-grouped" do
|
|
%i.fa.fa-pencil-square-o
|
|
Edit
|
|
%hr
|
|
%ul.nav.nav-tabs
|
|
= nav_link(path: 'users#show') do
|
|
= link_to "Account", admin_user_path(@user)
|
|
= nav_link(path: 'users#groups') do
|
|
= link_to "Groups", groups_admin_user_path(@user)
|
|
= nav_link(path: 'users#projects') do
|
|
= link_to "Projects", projects_admin_user_path(@user)
|
|
= 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)
|