Performance fix to only visit a node once.
[arvados.git] / apps / workbench / app / views / authorized_keys / index.html.erb
index bdfc2f7eb67a3f4cbade68cd71d2ce0c1539231e..433297780c3137ae37d1f7bfebfdf041117ece61 100644 (file)
@@ -1,53 +1,10 @@
-<table class="table">
-  <thead>
-    <tr class="contain-align-left">
-      <th>
-       id
-      </th><th>
-       owner
-      </th><th>
-       name
-      </th><th>
-       key&nbsp;type
-      </th><th>
-       public&nbsp;key
-      </th><th>
-       expires
-      </th>
-    </tr>
-  </thead>
-  <tbody>
+<%= render partial: 'application/index' %>
 
-    <% @objects.sort_by { |ak| ak[:created_at] }.each do |ak| %>
+<hr />
 
-    <tr>
-      <td>
-        <%= link_to_if_arvados_object ak %>
-      </td><td>
-        <%= render_editable_attribute ak, 'owner' %>
-      </td><td>
-        <%= render_editable_attribute ak, 'name' %>
-      </td><td>
-        <%= render_editable_attribute ak, 'key_type', ak.key_type, "data-type" => "select", "data-source" => '[{value:"SSH",text:"SSH"}]' %>
-      </td><td style="max-width: 120px; overflow-x: hidden">
-        <%= render_editable_attribute ak, 'public_key' %>
-      </td><td>
-        <%= render_editable_attribute ak, 'expires_at' %>
-      </td><td>
-        <%= link_to raw('<i class="icon-trash"></i>'), { action: 'destroy', id: ak.uuid }, { confirm: 'Delete this key?', method: 'delete' } %>
-      </td>
-    </tr>
-
-    <% end %>
-    <% if @objects.count == 0 %>
-    <tr>
-      <td colspan="7">
-        (no authorized keys)
-      </td>
-    </tr>
-    <% end %>
-
-  </tbody>
-</table>
-
-<%= button_to "Add a new key", { action: 'create', return_to: './' }, { class: 'btn btn-primary' } %>
+<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>