1 <% content_for :tab_line_buttons do %>
2 <%= link_to(choose_projects_path(id: "run-pipeline-button",
3 title: 'Choose project',
6 action_href: pipeline_instances_path,
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'
13 { class: "btn btn-primary btn-sm", remote: true, title: 'Run this pipeline' }
15 <i class="fa fa-gear"></i> Run this pipeline
19 <%= render file: 'application/show.html.erb', locals: local_assigns %>