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">
18 script, parameters, input, output
26 <% @jobs.sort_by { |j| j[:created_at] }.reverse.each do |j| %>
28 <tr class="<%= 'error' if j.success == false %>">
30 <table class="table table-condensed table-hover">
33 <% if j.success == false %>
34 <span class="badge badge-warning" title="fail">✖</span>
36 <span class="badge badge-success" title="success">✔</span>
38 <span class="badge badge-info" title="running">✈</span>
40 <span class="badge" title="queued">✉</span>
42 <%= link_to_if_arvados_object j.uuid %>
45 <% if j.started_at and not j.finished_at %>
46 <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %>
47 <div class="progress" style="margin-bottom: 0">
48 <div class="bar bar-success" style="width: <%= j.tasks_summary[:done] * percent_total_tasks rescue 0 %>%;"></div>
49 <div class="bar" style="width: <%= j.tasks_summary[:running] * percent_total_tasks rescue 0 %>%; opacity: 0.3"></div>
59 ✉ <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>
62 <%= raw('for ' + distance_of_time_in_words(j.started_at, j.created_at).sub('about ','~').sub(' ',' ')) if j.created_at and j.started_at %>
65 <% if j.started_at.is_a? Time %>
71 ✈ <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>
74 <% if j.finished_at.is_a? Time %>
75 <%= raw('ran ' + distance_of_time_in_words(j.finished_at, j.started_at).sub('about ','~').sub(' ',' ')) %>
77 <span class="badge badge-success" title="tasks finished">✔ <%= j.tasks_summary[:done] %></span>
78 <span class="badge badge-info" title="tasks running">✈ <%= j.tasks_summary[:running] %></span>
79 <span class="badge" title="tasks todo">✉ <%= j.tasks_summary[:todo] %></span>
80 <% if j.tasks_summary[:failed] %>
81 <span class="badge badge-warning" title="task failures">✖ <%= j.tasks_summary[:failed] %></span>
89 <table class="table table-condensed table-hover">
90 <tr class="info"><td colspan="2">
91 <%= j.script %> <%= j.script_version %>
93 <% j.script_parameters.sort.each do |k,v| %>
95 <td><%= k %></td><td><%= link_to_if_arvados_object v %></td>
99 <td>output</td><td><%= link_to_if_arvados_object j.output %></td>
103 <table class="table table-condensed table-hover">
104 <% j.resource_limits.sort.each do |k,v| %>
105 <tr><td><%= v %></td><td><%= k %></td></tr>