Merge branch '16104-select-uuid'
[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_action :require_thread_api_token, if: proc { |ctrl|
7     !Rails.configuration.Users.AnonymousUserToken.empty? 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