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

  .pull-right
9
    - unless @user == current_user || @user.blocked?
10 11
      = 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
12 13
      %i.fa.fa-pencil-square-o
      Edit
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
14
%hr
15 16 17 18 19 20 21 22 23 24 25
%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)