X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a59152e34814f453a7380e68a55534e2f8922d57..85c625c40ad873d0efac33f8a63c1ee256185e36:/apps/workbench/app/views/collections/index.html.erb diff --git a/apps/workbench/app/views/collections/index.html.erb b/apps/workbench/app/views/collections/index.html.erb index 1bd6430936..e1285e83c6 100644 --- a/apps/workbench/app/views/collections/index.html.erb +++ b/apps/workbench/app/views/collections/index.html.erb @@ -1,47 +1,18 @@ -<%= render :partial => 'nav' %> +<%# Copyright (C) The Arvados Authors. All rights reserved. - - - - - - - +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 %> +
+ <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search collections' %> + + <%= button_tag(class: 'btn btn-info') do %> + + <% end %> + +
+ <% end %> +<% end %> - - - - - <% end %> - - -
- uuid - - created - - protected - - groups - - origin -
- <% if @collections.has_key? uuid %> - <%= link_to_if_orvos_object uuid %> - <% else %> - <%= uuid %> - <% end %> - - <%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about ','~').sub(' ',' ')) if c[:created_at] %> - - <%= ('Y' if c[:wanted_by_me]) or ('y' if c[:wanted]) %> - - <%= c[:groups].size if c[:groups] %> - - <% if c[:origin] %> - <%= c[:origin].name %> - <%= c[:origin].head_uuid %> - <% end %> -
+<%= render file: 'application/index.html.erb', locals: local_assigns %>