1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% pi_span = [(10.0/[@objects.count,1].max).floor,1].max %>
7 <div class="headrow pipeline-compare-headrow">
12 <% @objects.each do |object| %>
13 <div class="col-sm-<%= pi_span %>" style="overflow-x: hidden; text-overflow: ellipsis;">
14 <%= render :partial => "show_object_button", :locals => {object: object, size: 'sm' } %>
15 <%= object.name || "unnamed #{object.class_for_display.downcase}" %>
17 <span class="deemphasize">Template:</span> <%= link_to_if_arvados_object object.pipeline_template_uuid, friendly_name: true %>
23 <% @rows.each do |row| %>
24 <div class="row pipeline-compare-row">
25 <div class="col-sm-2">
28 <% @objects.each_with_index do |_, x| %>
29 <div class="col-sm-<%= pi_span %>">
31 <div class="col-sm-12">
33 <% if row[:components][x] %>
34 <% pj = render_pipeline_job row[:components][x] %>
36 <%= link_to_if_arvados_object pj[:job_id], {friendly_name: true, with_class_name: true}, {class: 'deemphasize'} %>
39 <% %w(script script_version script_parameters output).each do |key| %>
40 <% unless key=='output' and pj[:result] != 'complete' %>
41 <% val = pj[key.to_sym] || pj[:job].andand[key.to_sym] %>
45 when key == 'script_version' && val.match(/^[0-9a-f]{7,}$/)
46 val = val[0..7] # TODO: leave val alone, make link_to handle git commits
50 when key == 'script_parameters'
51 val = val.keys.sort.join(', ')
54 <span class="deemphasize"><%= key %>:</span> <span class="<%= 'notnormal' if !pj[:is_normal][key.to_sym] %>"><%= link_to_if_arvados_object val, {friendly_name: true, link_text: link_name} %></span>
66 <div class="row" style="padding: .5em">