1 <% content_for :css do %>
10 border-bottom: 1px solid black;
14 <% pi_span = [(10.0/[@objects.count,1].max).floor,1].max %>
18 <div class="col-sm-2">
21 <% @objects.each do |object| %>
22 <div class="col-sm-<%= pi_span %>" style="overflow-x: hidden; text-overflow: ellipsis;">
23 <%= link_to_if_arvados_object object, friendly_name: true %>
25 Template: <%= link_to_if_arvados_object object.pipeline_template_uuid, friendly_name: true %>
31 <% @rows.each do |row| %>
33 <div class="col-sm-2">
36 <% @objects.each_with_index do |_, x| %>
37 <div class="col-sm-<%= pi_span %>">
39 <div class="col-sm-12">
41 <% if row[:components][x] %>
42 <% pj = render_pipeline_job row[:components][x] %>
44 <%= link_to_if_arvados_object pj[:job_id], {friendly_name: true, with_class_name: true}, {class: 'deemphasize'} %>
47 <% %w(script script_version script_parameters output).each do |key| %>
48 <% unless key=='output' and pj[:result] != 'complete' %>
49 <% val = pj[key.to_sym] || pj[:job].andand[key.to_sym] %>
53 when key == 'script_version' && val.match(/^[0-9a-f]{7,}$/)
54 val = val[0..7] # TODO: leave val alone, make link_to handle git commits
58 when key == 'script_parameters'
59 val = val.keys.sort.join(', ')
62 <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>
74 <div class="row" style="padding: .5em">