diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-12-29 19:07:23 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-12-29 19:07:23 +0300 |
commit | 492f3a477940daf425aabc9dd4a33e7a1e9092c1 (patch) | |
tree | 5f81c89c5212c1ac01f2ec4f2e86fc8a7043e71d /app/views/admin/users/show.html.haml | |
parent | 75043a9eba557d1fe31d81dc30bd979af321e907 (diff) |
Add user key actions to admins.
Diffstat (limited to 'app/views/admin/users/show.html.haml')
-rw-r--r-- | app/views/admin/users/show.html.haml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index 29717aedd80..ef873fb2298 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -20,6 +20,8 @@ %a{"data-toggle" => "tab", href: "#groups"} Groups %li %a{"data-toggle" => "tab", href: "#projects"} Projects + %li + %a{"data-toggle" => "tab", href: "#ssh-keys"} SSH keys .tab-content #account.tab-pane.active @@ -217,3 +219,28 @@ - if tm.respond_to? :project = link_to project_team_member_path(project, @user), data: { confirm: remove_from_project_team_message(project, @user) }, remote: true, method: :delete, class: "btn-tiny btn btn-remove", title: 'Remove user from project' do %i.fa.fa-times + #ssh-keys.tab-pane + - if @ssh_keys.any? + .panel.panel-default + %table.table + %thead.panel-heading + %tr + %th Title + %th Fingerprint + %th + %tbody + - @ssh_keys.each do |key| + %tr + %td + = link_to user_key_admin_user_path(@user, key) do + %strong= key.title + %td + %span + (#{key.fingerprint}) + %span.cgray + added #{time_ago_with_tooltip(key.created_at)} + %td + = link_to 'Remove', remove_user_key_admin_user_path(@user, key), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-small btn-remove delete-key pull-right" + + - else + .nothing-here-block User has no ssh keys |