1 <% pi_span = [(10.0/[@objects.count,1].max).floor,1].max %>
3 <div class="headrow pipeline-compare-headrow">
8 <% @objects.each do |object| %>
9 <div class="col-sm-<%= pi_span %>" style="overflow-x: hidden; text-overflow: ellipsis;">
10 <%= render :partial => "show_object_button", :locals => {object: object, size: 'sm' } %>
11 <%= object.name || "unnamed #{object.class_for_display.downcase}" %>
13 <span class="deemphasize">Template:</span> <%= link_to_if_arvados_object object.pipeline_template_uuid, friendly_name: true %>
19 <% @rows.each do |row| %>
20 <div class="row pipeline-compare-row">
21 <div class="col-sm-2">
24 <% @objects.each_with_index do |_, x| %>
25 <div class="col-sm-<%= pi_span %>">
27 <div class="col-sm-12">
29 <% if row[:components][x] %>
30 <% pj = render_pipeline_job row[:components][x] %>
32 <%= link_to_if_arvados_object pj[:job_id], {friendly_name: true, with_class_name: true}, {class: 'deemphasize'} %>
35 <% %w(script script_version script_parameters output).each do |key| %>
36 <% unless key=='output' and pj[:result] != 'complete' %>
37 <% val = pj[key.to_sym] || pj[:job].andand[key.to_sym] %>
41 when key == 'script_version' && val.match(/^[0-9a-f]{7,}$/)
42 val = val[0..7] # TODO: leave val alone, make link_to handle git commits
46 when key == 'script_parameters'
47 val = val.keys.sort.join(', ')
50 <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>
62 <div class="row" style="padding: .5em">