X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5d834e3837b2afc830c79f75e121a524d93806c0..fad433ed99dffb9fd003c5dfd5f7bad770b19206:/apps/workbench/app/views/users/_manage_ssh_keys.html.erb diff --git a/apps/workbench/app/views/users/_manage_ssh_keys.html.erb b/apps/workbench/app/views/users/_manage_ssh_keys.html.erb index c8a68a87d9..17b64b27f9 100644 --- a/apps/workbench/app/views/users/_manage_ssh_keys.html.erb +++ b/apps/workbench/app/views/users/_manage_ssh_keys.html.erb @@ -1,38 +1,49 @@
<% if !@my_ssh_keys.any? %>

You have not yet set up an SSH public key for use with Arvados.

-

<%= link_to "Click here to learn about SSH keys in Arvados.", +

<%= link_to "Click here", "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", style: "font-weight: bold", - target: "_blank" %>

+ target: "_blank" %> to learn about SSH keys in Arvados. +

When you have an SSH key you would like to use, add it using the Add button.

- <% end %> - - <% if @my_ssh_keys.andand.any? %> - + <% else %> +
- - - + + + - + <% @my_ssh_keys.andand.each do |key| %> - - + -
Name Public Key Key Fingerprint
+
<%= key[:name] %> - <%= key[:public_key] %> + + <% if key[:public_key] && key[:public_key].size > 0 %> +
+ <%= + begin + SSHKey.fingerprint key[:public_key] + rescue + "INVALID KEY: " + key[:public_key] + end + %> +
+ <% else %> + <%= key[:public_key] %> + <% end %>
- <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key"}) do %> + <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key?"}) do %> <% end %>