1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% content_for :css do %>
6 table.topalign>tbody>tr>td {
9 table.topalign>thead>tr>td {
10 vertical-align: bottom;
14 <%= render partial: "paging", locals: {results: objects, object: @object} %>
16 <table class="topalign table">
18 <tr class="contain-align-left">
35 <% @objects.sort_by { |j| j[:created_at] }.reverse.each do |j| %>
37 <tr class="cell-noborder">
39 <i class="icon-plus-sign expand-collapse-row" data-id="<%= j.uuid %>" style="cursor: pointer"></i>
42 <div class="inline-progress-container">
43 <%= render partial: 'job_progress', locals: {:j => j} %>
47 <%= link_to_if_arvados_object j %>
53 <%= j.script_version.andand[0..8] %>
56 <%= link_to_if_arvados_object j.output %>
59 <tr class="cell-noborder" id="<%= j.uuid %>" style="display:none">
60 <td colspan="7"><table class="table table-justforlayout"><tr>
61 <td style="border-left: 1px solid black">
62 <table class="table table-condensed">
68 ✉ <span title="<%= j.created_at %>"><%= raw distance_of_time_in_words(Time.now, j.created_at).sub('about ','~').sub(' ',' ') + ' ago' if j.created_at %></span>
71 <%= raw('for ' + distance_of_time_in_words(j.started_at, j.created_at).sub('about ','~').sub(' ',' ')) if j.created_at and j.started_at %>
74 <% if j.started_at.is_a? Time %>
80 ✈ <span title="<%= j.created_at %>"><%= raw distance_of_time_in_words(j.started_at, Time.now).sub('about ','~').sub(' ',' ') + ' ago' if j.started_at %></span>
83 <% if j.finished_at.is_a? Time %>
84 <%= raw('ran ' + distance_of_time_in_words(j.finished_at, j.started_at).sub('about ','~').sub(' ',' ')) %>
85 <% elsif j.state == "Running" %>
86 <span class="badge badge-success" title="tasks finished">✔ <%= j.tasks_summary[:done] %></span>
87 <span class="badge badge-info" title="tasks running">✈ <%= j.tasks_summary[:running] %></span>
88 <span class="badge" title="tasks todo">✉ <%= j.tasks_summary[:todo] %></span>
89 <% if j.tasks_summary[:failed] %>
90 <span class="badge badge-warning" title="task failures">✖ <%= j.tasks_summary[:failed] %></span>
98 <table class="table table-condensed">
100 <%= j.script %> <%= j.script_version %>
102 <% j.script_parameters.sort.each do |k,v| %>
104 <td><%= k %></td><td><%= link_to_if_arvados_object v %></td>
108 <td>output</td><td><%= link_to_if_arvados_object j.output %></td>
112 <table class="table table-condensed">
113 <% j.runtime_constraints.sort.each do |k,v| %>
114 <tr><td><%= v %></td><td><%= k %></td></tr>