1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <div class="panel panel-default">
6 <div class="panel-heading">
7 <div class="pull-right">
8 <%= link_to raw('<i class="fa fa-plus"></i>' " Add new SSH key"), add_ssh_key_popup_url,
9 {class: 'btn btn-xs btn-primary', :remote => true, 'data-toggle' => "modal",
10 'data-target' => '#add-ssh-key-modal-window'} %>
12 <h4 class="panel-title">
13 <%= link_to ssh_keys_user_path(current_user) do %>
19 <div id="manage_ssh_keys" class="panel-body">
20 <% if !@my_ssh_keys.any? %>
21 <p> You have not yet set up an SSH public key for use with Arvados. <%= link_to "Learn more.",
22 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
23 style: "font-weight: bold",
26 <p> When you have an SSH key you would like to use, add it using the <b>Add</b> button. </p>
28 <table class="table manage-ssh-keys-table">
30 <col style="width: 35%" />
31 <col style="width: 55%" />
32 <col style="width: 10%" />
37 <th> Key Fingerprint </th>
42 <% @my_ssh_keys.andand.each do |key| %>
43 <tr style="word-break:break-all;">
47 <td style="word-break:break-all;">
48 <% if key[:public_key] && key[:public_key].size > 0 %>
50 <span title="<%=key[:public_key]%>"> <%=
52 SSHKey.fingerprint key[:public_key]
54 "INVALID KEY: " + key[:public_key]
59 <%= key[:public_key] %>
63 <%= link_to(authorized_key_path(id: key[:uuid]), method: :delete, class: 'btn btn-sm', data: {confirm: "Really delete key?"}) do %>
64 <i class="fa fa-fw fa-trash-o"></i>