Merge branch '3072-empty-collection-bugfix'
[arvados.git] / apps / workbench / app / views / projects / _show_data_collections.html.erb
index a8b58b84481ca92ac2d77e18c1a83e2b2b7edcb4..c44db5f4bdd9b47b9ec7c88490e59def50a11153 100644 (file)
@@ -41,6 +41,7 @@
        choose_projects_path(
         title: 'Move this project to...',
         editable: true,
+        my_root_selectable: true,
         action_name: 'Move',
         action_href: project_path(@object.uuid),
         action_method: 'put',
   <% end %>
 <% end %>
 
-<%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: @objects_and_names, data_kind: ['arvados#collection']} %>
+<% 
+  filters = [['uuid', 'is_a', "arvados#collection"]]
+  @objects = @object.contents({limit: 50, include_linked: true, :filters => filters})
+  objects_and_names = get_objects_and_names @objects
+  page_offset = next_page_offset @objects
+%>
+
+<%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: objects_and_names, filters: filters, page_offset: page_offset, tab_name: 'Data_collections'} %>