X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f91557687f656e11b9ddad08be2243677ebe6cec..b6f54ccb32e05348e9a5c76c7ed3211203cd4e55:/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 57edd603a5..951b79c6de 100644 --- a/apps/workbench/app/views/users/_manage_ssh_keys.html.erb +++ b/apps/workbench/app/views/users/_manage_ssh_keys.html.erb @@ -1,23 +1,37 @@ -
You have not yet set up an SSH public key for use with Arvados.
<%= link_to "Click here", - "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", - style: "font-weight: bold", - target: "_blank" %> to learn about SSH keys in Arvados. + "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", + style: "font-weight: bold", + 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.
<% else %>Name | -Key Finger Print | +Key Fingerprint |
<% if key[:public_key] && key[:public_key].size > 0 %>
- <%= SSHKey.fingerprint key[:public_key] %>
+ <%=
+ 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 %> | @@ -47,3 +67,4 @@
---|