Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / workflows / show.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% if current_user.andand.is_active %>
6   <% content_for :tab_line_buttons do %>
7     <%= link_to(choose_projects_path(id: "run-workflow-button",
8                                      title: 'Choose project',
9                                      editable: true,
10                                      action_name: 'Choose',
11                                      action_href: work_units_path,
12                                      action_method: 'post',
13                                      action_data: {'selection_param' => 'work_unit[owner_uuid]',
14                                                    'work_unit[template_uuid]' => @object.uuid,
15                                                    'success' => 'redirect-to-created-object'
16                                                   }.to_json),
17           { class: "btn btn-primary btn-sm", title: "Run #{@object.name}", remote: true }
18         ) do %>
19       <i class="fa fa-fw fa-gear"></i> Run this workflow
20     <% end %>
21   <% end %>
22 <% end %>
23
24 <%= render file: 'application/show.html.erb', locals: local_assigns %>