Merge branch '3193-manage-account' of git.curoverse.com:arvados into 3193-manage...
[arvados.git] / apps / workbench / app / views / users / _manage_ssh_keys.html.erb
1 <div>
2   <% if !@my_ssh_keys.any? %>
3      <p> You have not yet set up an SSH public key for use with Arvados. </p>
4      <p>  <%= link_to "Click here to learn about SSH keys in Arvados.",
5                   "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", 
6                   style: "font-weight: bold",
7                   target: "_blank" %>       </p>
8      <p> When you have an SSH key you would like to use, add it using the <b>Add</b> button. </p>
9   <% end %>
10
11   <% if @my_ssh_keys.andand.any? %>
12     <table class="table virtual-machines-table" style="table-layout:fixed; overflow:hidden; white-space: nowrap;">
13       <colgroup>
14         <col style="width: 15%" />
15         <col style="width: 80%" />
16         <col style="width: 5%" />
17       </colgroup>
18       <thead>
19         <tr>
20           <th> Name </th>
21           <th> Public Key </th>
22           <th> </th>
23         </tr>
24       </thead>
25       <tbody>
26         <% @my_ssh_keys.andand.each do |key| %>
27           <tr>
28             <td style="width:50px; overflow:hidden;">
29               <%= key[:name] %>
30             </td>
31             <td style="width:100px; overflow:hidden;">
32               <%= key[:public_key] %>
33             </td>
34             <td>
35               <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key"}) do %>
36                   <i class="fa fa-fw fa-trash-o"></i>
37               <% end %>
38             </td>
39           </tr>
40         <% end %>
41       </tbody>
42     </table>
43   <% end %>
44 </div>