%# Copyright (C) The Arvados Authors. All rights reserved.
SPDX-License-Identifier: AGPL-3.0 %>
<% if @pipelines.count > 1 %>
<%= link_to_if_arvados_object @pipelines[0], friendly_name: true %>
<%= link_to_if_arvados_object @pipelines[1], friendly_name: true %>
<% if @pipelines.count > 2 %>
<%= link_to_if_arvados_object @pipelines[2], friendly_name: true %>
<% end %>
Common to <%= @pipelines.count > 2 ? 'multiple' : 'both' %> pipelines
<% end %>
<%= render partial: 'application/svg_div', locals: {
divId: "provenance_graph",
svgId: "provenance_svg",
svg: @prov_svg } %>