1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if @object.editable? %>
6 <% content_for :tab_line_buttons do %>
7 <%= link_to(choose_projects_path(
8 id: "run-pipeline-button",
9 title: 'Choose project',
11 action_name: 'Choose',
12 action_href: pipeline_instances_path,
13 action_method: 'post',
15 'selection_param' => 'pipeline_instance[owner_uuid]',
16 'pipeline_instance[pipeline_template_uuid]' => @object.uuid,
17 'pipeline_instance[description]' => "Created at #{Time.now.localtime}" + (@object.name.andand.size.andand>0 ? " using the pipeline template *#{@object.name}*" : ""),
18 'success' => 'redirect-to-created-object',
20 class: "btn btn-primary btn-sm",
22 title: 'Run this pipeline'
24 <i class="fa fa-gear"></i> Run this pipeline
29 <%= render file: 'application/show.html.erb', locals: local_assigns %>