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 <%= render :partial => "show_object_button", :locals => {object: object, size: 'sm' } %>
24 <%= object.name || "unnamed #{object.class_for_display.downcase}" %>
26 <span class="deemphasize">Template:</span> <%= link_to_if_arvados_object object.pipeline_template_uuid, friendly_name: true %>
32 <% @rows.each do |row| %>
34 <div class="col-sm-2">
37 <% @objects.each_with_index do |_, x| %>
38 <div class="col-sm-<%= pi_span %>">
40 <div class="col-sm-12">
42 <% if row[:components][x] %>
43 <% pj = render_pipeline_job row[:components][x] %>
45 <%= link_to_if_arvados_object pj[:job_id], {friendly_name: true, with_class_name: true}, {class: 'deemphasize'} %>
48 <% %w(script script_version script_parameters output).each do |key| %>
49 <% unless key=='output' and pj[:result] != 'complete' %>
50 <% val = pj[key.to_sym] || pj[:job].andand[key.to_sym] %>
54 when key == 'script_version' && val.match(/^[0-9a-f]{7,}$/)
55 val = val[0..7] # TODO: leave val alone, make link_to handle git commits
59 when key == 'script_parameters'
60 val = val.keys.sort.join(', ')
63 <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>
75 <div class="row" style="padding: .5em">