Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / pipeline_templates / show.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
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',
10         editable: true,
11         action_name: 'Choose',
12         action_href: pipeline_instances_path,
13         action_method: 'post',
14         action_data: {
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',
19         }.to_json), {
20           class: "btn btn-primary btn-sm",
21           remote: true,
22           title: 'Run this pipeline'
23         }) do %>
24       <i class="fa fa-gear"></i> Run this pipeline
25     <% end %>
26   <% end %>
27 <% end %>
28
29 <%= render file: 'application/show.html.erb', locals: local_assigns %>