X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c16fd46f51a61f5d66e08b786362d91ef5a33f7d..fb9235f1b9abe0661eb7640c4db0ab7001f90f1d:/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 6fb506d1e8..061b05b474 100644 --- a/apps/workbench/app/views/collections/index.html.erb +++ b/apps/workbench/app/views/collections/index.html.erb @@ -1,57 +1,14 @@ -<%#= render :partial => 'nav' %> - - - - - - - - - - - - - - - - - <% @collections.each do |c| %> - - - - - - <% end %> - - -
- uuid - - contents - - age - - tags - - storage -
- <%= link_to_if_arvados_object c.uuid %> - - <% c.files.each do |file| %> - <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %> - <% end %> - - <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %> - - <% if @collection_info[c.uuid] %> - <%= @collection_info[c.uuid][:tags].uniq.join ', ' %> - <% end %> - - <% if @collection_info[c.uuid][:wanted_by_me] %> - - <% elsif @collection_info[c.uuid][:wanted] %> - - <% else %> - cache - <% end %> -
+<% 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 %> + +<%= render file: 'application/index.html.erb', locals: local_assigns %>