Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / apps / workbench / app / views / pipeline_templates / show.html.erb
1 <% content_for :tab_line_buttons do %>
2   <%= link_to(choose_projects_path(id: "run-pipeline-button",
3                                      title: 'Choose project',
4                                      editable: true,
5                                      action_name: 'Choose',
6                                      action_href: pipeline_instances_path,
7                                      action_method: 'post',
8                                      action_data: {selection_param: 'pipeline_instance[owner_uuid]',
9                                                    'pipeline_instance[pipeline_template_uuid]' => @object.uuid,
10                                                    'pipeline_instance[description]' => "Created at #{Time.now.localtime}" + (@object.name.andand.size.andand>0 ? " using the pipeline template *#{@object.name}*" : ""),
11                                                    'success' => 'redirect-to-created-object'
12                                                   }.to_json),
13                 { class: "btn btn-primary btn-sm", remote: true, title: 'Run this pipeline' }
14                ) do %>
15                    <i class="fa fa-gear"></i> Run this pipeline
16                  <% end %>
17 <% end %>
18
19 <%= render file: 'application/show.html.erb', locals: local_assigns %>