Merge branch 'master' into 14075-uploadfiles
[arvados.git] / apps / workbench / app / controllers / pipeline_templates_controller.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class PipelineTemplatesController < ApplicationController
6   skip_around_filter :require_thread_api_token, if: proc { |ctrl|
7     Rails.configuration.anonymous_user_token and
8     'show' == ctrl.action_name
9   }
10
11   include PipelineComponentsHelper
12
13   def show
14     @objects = PipelineInstance.where(pipeline_template_uuid: @object.uuid)
15     super
16   end
17
18   def show_pane_list
19     %w(Components Pipelines Advanced)
20   end
21 end