Merge branch 'master' into 3354-render-textile
[arvados.git] / apps / workbench / app / views / users / _manage_ssh_keys.html.erb
index 57edd603a53714e254be100fe336a781b8fcbf51..17b64b27f9f7c7d74141bc55ea52de7ba3b080ff 100644 (file)
   <% else %>
     <table class="table manage-ssh-keys-table">
       <colgroup>
-        <col style="width: 45%" />
-        <col style="width: 45%" />
+        <col style="width: 35%" />
+        <col style="width: 55%" />
         <col style="width: 10%" />
       </colgroup>
       <thead>
         <tr>
           <th> Name </th>
-          <th> Key Finger Print </th>
+          <th> Key Fingerprint </th>
           <th> </th>
         </tr>
       </thead>
             <td style="word-break:break-all;">
               <% if key[:public_key] && key[:public_key].size > 0 %>
                 <div>
-                  <%= SSHKey.fingerprint key[:public_key] %>
+                  <span title="<%=key[:public_key]%>"> <%=
+                    begin
+                      SSHKey.fingerprint key[:public_key]
+                    rescue
+                      "INVALID KEY: " + key[:public_key]
+                    end
+                   %> </span>
                 </div>
               <% else %>
                   <%= key[:public_key] %>