20259: Add documentation for banner and tooltip features
[arvados.git] / apps / workbench / app / views / collections / index.html.erb
index 1bd64309367a4e84b3d66a5603cd64aa978d9c5b..e1285e83c63a94be4531eba4cbe6f3c9e717f0c1 100644 (file)
@@ -1,47 +1,18 @@
-<%= render :partial => 'nav' %>
+<%# Copyright (C) The Arvados Authors. All rights reserved.
 
-<table class="topalign table table-bordered table-striped">
-  <thead>
-    <tr class="contain-align-left">
-      <th>
-       uuid
-      </th><th>
-       created
-      </th><th>
-       protected
-      </th><th>
-       groups
-      </th><th>
-       origin
-      </th>
-    </tr>
-  </thead>
-  <tbody>
+SPDX-License-Identifier: AGPL-3.0 %>
 
-    <% @collection_info.sort_by { |k,c| c[:created_at].is_a?(Time) ? c[:created_at] : Time.now }.reverse.each do |uuid, c| %>
+<% content_for :tab_line_buttons do %>
+ <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
+ <div class="input-group">
+   <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search collections' %>
+   <span class="input-group-btn">
+     <%= button_tag(class: 'btn btn-info') do %>
+     <span class="glyphicon glyphicon-search"></span>
+     <% end %>
+   </span>
+ </div>
+ <% end %>
+<% end %>
 
-    <tr class="collection">
-      <td>
-       <% if @collections.has_key? uuid %>
-       <%= link_to_if_orvos_object uuid %>
-       <% else %>
-       <%= uuid %>
-       <% end %>
-      </td><td>
-       <%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about ','~').sub(' ','&nbsp;')) if c[:created_at] %>
-      </td><td>
-       <%= ('Y' if c[:wanted_by_me]) or ('y' if c[:wanted]) %>
-      </td><td>
-       <%= c[:groups].size if c[:groups] %>
-      </td><td>
-       <% if c[:origin] %>
-       <span class="deemphasize"><%= c[:origin].name %></span>
-       <%= c[:origin].head_uuid %>
-       <% end %>
-      </td>
-    </tr>
-
-    <% end %>
-
-  </tbody>
-</table>
+<%= render file: 'application/index.html.erb', locals: local_assigns %>