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 <%= link_to ssh_keys_user_path(current_user) do %>
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. <%= link_to "Learn more.",
18 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
19 style: "font-weight: bold",
22 <p> When you have an SSH key you would like to use, add it using the <b>Add</b> button. </p>
24 <table class="table manage-ssh-keys-table">
26 <col style="width: 35%" />
27 <col style="width: 55%" />
28 <col style="width: 10%" />
33 <th> Key Fingerprint </th>
38 <% @my_ssh_keys.andand.each do |key| %>
39 <tr style="word-break:break-all;">
43 <td style="word-break:break-all;">
44 <% if key[:public_key] && key[:public_key].size > 0 %>
46 <span title="<%=key[:public_key]%>"> <%=
48 SSHKey.fingerprint key[:public_key]
50 "INVALID KEY: " + key[:public_key]
55 <%= key[:public_key] %>
59 <%= link_to(authorized_key_path(id: key[:uuid]), method: :delete, class: 'btn btn-sm', data: {confirm: "Really delete key?"}) do %>
60 <i class="fa fa-fw fa-trash-o"></i>