3193: show only a portion of the ssh key so that the page does not have to scroll...
authorradhika <radhika@curoverse.com>
Tue, 29 Jul 2014 19:15:01 +0000 (15:15 -0400)
committerradhika <radhika@curoverse.com>
Tue, 29 Jul 2014 19:15:01 +0000 (15:15 -0400)
apps/workbench/app/views/users/_manage_ssh_keys.html.erb

index 44dc6605242aa35301e9df519c337ec9fc250b87..43840416955404a517bee693ec669011ad185061 100644 (file)
@@ -10,7 +10,7 @@
   <% end %>
 
   <% if @my_ssh_keys.andand.any? %>
-    <table class="table virtual-machines-table">
+    <table class="table virtual-machines-table" style="table-layout:fixed; overflow:hidden; white-space: nowrap;">
       <colgroup>
         <col style="width: 15%" />
         <col style="width: 80%" />
       <tbody>
         <% @my_ssh_keys.andand.each do |key| %>
           <tr>
-            <td style="word-break:break-all;">
+            <td style="width:50px; overflow:hidden;">
               <%= key[:name] %>
             </td>
-            <td style="word-break:break-all;">
+            <td style="width:100px; overflow:hidden;">
               <%= key[:public_key] %>
             </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>