Merge branch 'master' into 3153-auto-setup-user
[arvados.git] / apps / workbench / app / views / users / _manage_ssh_keys.html.erb
index a7d285a90134c07bb40d27eb1a5f573b45709274..17b64b27f9f7c7d74141bc55ea52de7ba3b080ff 100644 (file)
             <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] %>