1 <% content_for :head do %>
3 table.topalign>tbody>tr>td {
6 table.topalign>thead>tr>td {
7 vertical-align: bottom;
12 <table class="topalign table">
14 <tr class="contain-align-left">
33 <% @jobs.sort_by { |j| j[:created_at] }.reverse.each do |j| %>
35 <tr class="cell-noborder">
37 <i class="icon-plus-sign expand-collapse-row" data-id="<%= j.uuid %>" style="cursor: pointer"></i>
40 <% if j.success == false %>
41 <span class="badge badge-warning" title="fail">✖</span>
43 <span class="badge badge-success" title="success">✔</span>
45 <span class="badge badge-info" title="running">✈</span>
47 <span class="badge" title="queued">✉</span>
51 <% if j.started_at and not j.finished_at %>
52 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
53 <div class="progress" style="margin-bottom: 0">
54 <div class="bar bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;"></div>
55 <div class="bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%; opacity: 0.3"></div>
60 <%= link_to_if_arvados_object j.uuid %>
66 <%= j.script_version.andand[0..8] %>
69 <%= link_to_if_arvados_object j.output %>
72 <tr class="cell-noborder" id="<%= j.uuid %>" style="display:none">
73 <td colspan="7"><table class="table table-justforlayout"><tr>
74 <td style="border-left: 1px solid black">
75 <table class="table table-condensed">
81 ✉ <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>
84 <%= raw('for ' + distance_of_time_in_words(j.started_at, j.created_at).sub('about ','~').sub(' ',' ')) if j.created_at and j.started_at %>
87 <% if j.started_at.is_a? Time %>
93 ✈ <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>
96 <% if j.finished_at.is_a? Time %>
97 <%= raw('ran ' + distance_of_time_in_words(j.finished_at, j.started_at).sub('about ','~').sub(' ',' ')) %>
99 <span class="badge badge-success" title="tasks finished">✔ <%= j.tasks_summary[:done] %></span>
100 <span class="badge badge-info" title="tasks running">✈ <%= j.tasks_summary[:running] %></span>
101 <span class="badge" title="tasks todo">✉ <%= j.tasks_summary[:todo] %></span>
102 <% if j.tasks_summary[:failed] %>
103 <span class="badge badge-warning" title="task failures">✖ <%= j.tasks_summary[:failed] %></span>
111 <table class="table table-condensed">
113 <%= j.script %> <%= j.script_version %>
115 <% j.script_parameters.sort.each do |k,v| %>
117 <td><%= k %></td><td><%= link_to_if_arvados_object v %></td>
121 <td>output</td><td><%= link_to_if_arvados_object j.output %></td>
125 <table class="table table-condensed">
126 <% j.runtime_constraints.sort.each do |k,v| %>
127 <tr><td><%= v %></td><td><%= k %></td></tr>