1 <div class="panel panel-default">
2 <div class="panel-heading">
3 <div class="pull-right">
4 <%= link_to raw('<i class="fa fa-plus"></i>' " Add new SSH key"), add_ssh_key_popup_url,
5 {class: 'btn btn-xs btn-primary', :remote => true, 'data-toggle' => "modal",
6 'data-target' => '#add-ssh-key-modal-window'} %>
8 <h4 class="panel-title">
9 <a data-parent="#arv-adv-accordion" href="#manage_ssh_keys">
15 <div id="manage_ssh_keys" class="panel-body">
16 <% if !@my_ssh_keys.any? %>
17 <p> You have not yet set up an SSH public key for use with Arvados. </p>
18 <p> <%= link_to "Click here",
19 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
20 style: "font-weight: bold",
21 target: "_blank" %> to learn about SSH keys in Arvados.
23 <p> When you have an SSH key you would like to use, add it using the <b>Add</b> button. </p>
25 <table class="table manage-ssh-keys-table">
27 <col style="width: 35%" />
28 <col style="width: 55%" />
29 <col style="width: 10%" />
34 <th> Key Fingerprint </th>
39 <% @my_ssh_keys.andand.each do |key| %>
40 <tr style="word-break:break-all;">
44 <td style="word-break:break-all;">
45 <% if key[:public_key] && key[:public_key].size > 0 %>
47 <span title="<%=key[:public_key]%>"> <%=
49 SSHKey.fingerprint key[:public_key]
51 "INVALID KEY: " + key[:public_key]
56 <%= key[:public_key] %>
60 <%= link_to(authorized_key_path(id: key[:uuid]), method: :delete, class: 'btn btn-sm', data: {confirm: "Really delete key?"}) do %>
61 <i class="fa fa-fw fa-trash-o"></i>