% template = PipelineTemplate.find?(@object.pipeline_template_uuid) %>
<%= content_for :content_top do %>
<%= render partial: 'name_and_description' %>
<% if template %>
This pipeline was created from the template <%= link_to_if_arvados_object template, friendly_name: true %>
<% if template.modified_at && (template.modified_at > @object.created_at) %>
Note: This template has been modified since this instance was created.
<% end %>
<% end %>
<% end %>
<% content_for :tab_line_buttons do %>
<%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'pipeline_instance[state]' => 'New'),
class: 'btn btn-primary',
#data: {toggle: :tooltip, placement: :top}, title: 'copy and modify',
method: :post,
) do %>
Clone and edit