11014: When PipelineInstance API is off and also show_recent_collections_on_dashboard...
[arvados.git] / apps / workbench / app / views / projects / _show_pipeline_templates.html.erb
index c54e28dfebdb9170da31e6b5913ad1c86f49d7ad..d51e1a39c74413fe219d6f1d7bf64c2fec022364 100644 (file)
@@ -1,8 +1,5 @@
-<%
-  filters = [['uuid', 'is_a', "arvados#pipelineTemplate"]]
-  @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: 'Pipeline_templates'} %>
+<%= render_pane 'tab_contents', to_string: true, locals: {
+    limit: 50,
+    filters: [['uuid', 'is_a', ["arvados#pipelineTemplate", "arvados#workflow"]]],
+       sortable_columns: { 'name' => 'pipeline_templates.name, workflows.name', 'description' => 'pipeline_templates.description, workflows.description' }
+    }.merge(local_assigns) %>