8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / workflows / show.html.erb
1 <% if current_user.andand.is_active %>
2   <% content_for :tab_line_buttons do %>
3     <%= link_to(choose_projects_path(id: "run-workflow-button",
4                                      title: 'Choose project',
5                                      editable: true,
6                                      action_name: 'Choose',
7                                      action_href: work_units_path,
8                                      action_method: 'post',
9                                      action_data: {'selection_param' => 'work_unit[owner_uuid]',
10                                                    'work_unit[template_uuid]' => @object.uuid,
11                                                    'success' => 'redirect-to-created-object'
12                                                   }.to_json),
13           { class: "btn btn-primary btn-sm", title: "Run #{@object.name}", remote: true }
14         ) do %>
15       <i class="fa fa-fw fa-gear"></i> Run this workflow
16     <% end %>
17   <% end %>
18 <% end %>
19
20 <%= render file: 'application/show.html.erb', locals: local_assigns %>