1 <table class="table pipeline-components-table">
3 <col style="width: 15%" />
4 <col style="width: 25%" />
5 <col style="width: 8%" />
6 <col style="width: 13%" />
7 <col style="width: 12%" />
8 <col style="width: 14%" />
9 <col style="width: 13%" />
17 <%# format:'js' here helps browsers avoid using the cached js
18 content in html context (e.g., duplicate tab -> see
20 <%= link_to '(refresh)', {format: :js}, {class: 'refresh hide', remote: true, method: 'get'} %>
25 <% render_pipeline_jobs.each do |pj| %>
26 <tr data-object-uuid="<%= pj[:job].andand[:uuid] %>">
31 <br /><span class="deemphasize"><%= pj[:script_version] %></span>
33 <%= render(partial: 'job_status_label', locals: { j: pj[:job] }) %>
35 <%= pj[:progress_bar] %>
37 <% current_job = pj[:job] rescue nil %>
39 <% if current_job.is_a? Job %>
40 <%= render partial: 'show_object_button', locals: {object: current_job, size: 'xs', link_text: 'Show job details'} %>
43 <% if current_job.andand[:log] %>
44 <% fixup = /([a-f0-9]{32}\+\d+)(\+?.*)/.match(current_job[:log])%>
45 <% Collection.limit(1).where(portable_data_hash: fixup[1]).each do |c| %>
46 <% c.files.first.andand do |file| %>
47 <%= link_to url_for(controller: 'collections', action: 'show_file', uuid: current_job[:log], file: "#{file[0]}/#{file[1]}", disposition: 'inline', size: file[2]), class: 'btn btn-default btn-xs' do %>
48 <i class="fa fa-fw fa-info"></i> Show log messages
54 <% if pj[:output_uuid] %>
55 <%= link_to_if_arvados_object pj[:output_uuid], {thumbnail: true, link_text: raw('<i class="fa fa-fw fa-archive"></i> Show output files')}, {class: 'btn btn-default btn-xs'} %>
56 <% elsif current_job.andand[:output] %>
57 <%= link_to_if_arvados_object current_job[:output], {thumbnail: true, link_text: raw('<i class="fa fa-fw fa-archive"></i> Show output files')}, {class: 'btn btn-default btn-xs'} %>
64 <tr><td colspan="7"></td></tr>