BigW Consortium Gitlab

_head.html.haml 1.02 KB
Newer Older
1 2 3 4
%h3.page-title
  = @user.name
  - if @user.blocked?
    %span.cred (Blocked)
5 6
  - if @user.internal?
    %span.cred (Internal)
7 8 9 10
  - if @user.admin
    %span.cred (Admin)

  .pull-right
11
    - if @user != current_user && @user.can?(:log_in)
12 13
      = 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
14 15
      %i.fa.fa-pencil-square-o
      Edit
16
%hr
17
%ul.nav-links
18 19 20
  = nav_link(path: 'users#show') do
    = link_to "Account", admin_user_path(@user)
  = nav_link(path: 'users#projects') do
21
    = link_to "Groups and projects", projects_admin_user_path(@user)
22 23 24 25
  = 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)
26
  = nav_link(controller: :impersonation_tokens) do
27
    = link_to "Impersonation Tokens", admin_user_impersonation_tokens_path(@user)
28
.append-bottom-default