Performance fix to only visit a node once.
[arvados.git] / apps / workbench / app / views / authorized_keys / index.html.erb
index 4658af851ee989fb3e7bbbd204a0ddb4b2c13a94..433297780c3137ae37d1f7bfebfdf041117ece61 100644 (file)
@@ -1,49 +1,10 @@
-<table class="table table-hover">
-  <thead>
-    <tr class="contain-align-left">
-      <th>
-       id
-      </th><th>
-       owner
-      </th><th>
-       name
-      </th><th>
-       key_type
-      </th><th>
-       public_key
-      </th><th>
-       expires_at
-      </th>
-    </tr>
-  </thead>
-  <tbody>
+<%= render partial: 'application/index' %>
 
-    <% @objects.sort_by { |ak| ak[:created_at] }.reverse.each do |ak| %>
+<hr />
 
-    <tr>
-      <td>
-        <%= link_to_if_arvados_object ak %>
-      </td><td>
-        <%= ak.owner %>
-      </td><td>
-        <%= ak.name %>
-      </td><td>
-        <%= ak.key_type %>
-      </td><td>
-        <%= ak.public_key %>
-      </td><td>
-        <%= ak.expires_at %>
-      </td>
-    </tr>
-
-    <% end %>
-    <% if @objects.count == 0 %>
-    <tr>
-      <td colspan="6">
-        (no authorized keys)
-      </td>
-    </tr>
-    <% end %>
-
-  </tbody>
-</table>
+<p>
+  See also:
+  <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; SSH access'),
+  "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access.html",
+  target: "_blank"%>.
+</p>