8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_graph.html.erb
1 <% if @pipelines.count > 1 %>
2   <div style="text-align: center; padding-top: 0.5em">
3     <span class="pipeline_color_legend" style="background: #aaffaa"><%= link_to_if_arvados_object @pipelines[0], friendly_name: true %></span>
4     <span class="pipeline_color_legend" style="background: #aaaaff"><%= link_to_if_arvados_object @pipelines[1], friendly_name: true %></span>
5     <% if @pipelines.count > 2 %>
6     <span class="pipeline_color_legend" style="background: #ffaaaa"><%= link_to_if_arvados_object @pipelines[2], friendly_name: true %></span>
7     <% end %>
8     <span class="pipeline_color_legend" style="background: #aaaaaa">Common to <%= @pipelines.count > 2 ? 'multiple' : 'both' %> pipelines</span>
9   </div>
10 <% end %>
11
12 <%= render partial: 'application/svg_div', locals: {
13       divId: "provenance_graph", 
14       svgId: "provenance_svg", 
15       svg: @prov_svg } %>