projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3193: use sshkey gem to validate the ssh key passed in.
[arvados.git]
/
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 c8a68a87d98c9b2aaa6d47a9630b5fa26872d654..e559356f72ea6c635c8961c4eb5492907223dbd0 100644
(file)
--- a/
apps/workbench/app/views/users/_manage_ssh_keys.html.erb
+++ b/
apps/workbench/app/views/users/_manage_ssh_keys.html.erb
@@
-9,30
+9,36
@@
<% end %>
<% if @my_ssh_keys.andand.any? %>
<% end %>
<% if @my_ssh_keys.andand.any? %>
- <table class="table
virtual-machines-table" style="table-layout:fixed; overflow:hidden; white-space: nowrap;
">
+ <table class="table
manage-ssh-keys-table
">
<colgroup>
<colgroup>
- <col style="width:
1
5%" />
- <col style="width:
80
%" />
- <col style="width:
5
%" />
+ <col style="width:
4
5%" />
+ <col style="width:
45
%" />
+ <col style="width:
10
%" />
</colgroup>
<thead>
<tr>
<th> Name </th>
</colgroup>
<thead>
<tr>
<th> Name </th>
- <th>
Public Key
</th>
+ <th>
Key Finger Print
</th>
<th> </th>
</tr>
</thead>
<tbody>
<% @my_ssh_keys.andand.each do |key| %>
<th> </th>
</tr>
</thead>
<tbody>
<% @my_ssh_keys.andand.each do |key| %>
- <tr>
- <td
style="width:50px; overflow:hidden;"
>
+ <tr
style="word-break:break-all;"
>
+ <td>
<%= key[:name] %>
</td>
<%= key[:name] %>
</td>
- <td style="width:100px; overflow:hidden;">
- <%= key[:public_key] %>
+ <td style="word-break:break-all;">
+ <% if key[:public_key] && key[:public_key].size > 0 %>
+ <div>
+ <%= SSHKey.fingerprint key[:public_key] %>
+ </div>
+ <% else %>
+ <%= key[:public_key] %>
+ <% end %>
</td>
<td>
</td>
<td>
- <%= 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 %>
<i class="fa fa-fw fa-trash-o"></i>
<% end %>
</td>
<i class="fa fa-fw fa-trash-o"></i>
<% end %>
</td>