X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/95e2bdda5afc3ffc6afb2f08ea6d7cba8f8d62f1..ac3bafbcbc8e6d6c6b3be13e3e29b7ab7cf4ad7a:/apps/workbench/app/views/workflows/show.html.erb diff --git a/apps/workbench/app/views/workflows/show.html.erb b/apps/workbench/app/views/workflows/show.html.erb new file mode 100644 index 0000000000..f14ac1ee53 --- /dev/null +++ b/apps/workbench/app/views/workflows/show.html.erb @@ -0,0 +1,20 @@ +<% if current_user.andand.is_active %> + <% content_for :tab_line_buttons do %> + <%= link_to(choose_projects_path(id: "run-workflow-button", + title: 'Choose project', + editable: true, + action_name: 'Choose', + action_href: work_units_path, + action_method: 'post', + action_data: {'selection_param' => 'work_unit[owner_uuid]', + 'work_unit[template_uuid]' => @object.uuid, + 'success' => 'redirect-to-created-object' + }.to_json), + { class: "btn btn-primary btn-sm", title: "Run #{@object.name}", remote: true } + ) do %> + Run this workflow + <% end %> + <% end %> +<% end %> + +<%= render file: 'application/show.html.erb', locals: local_assigns %>