X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da51b9328abab2df757ed13eadc7c3557315094b..1ab33aed37fdcd448fe224375951089282901c48:/apps/workbench/app/views/jobs/_show_recent.html.erb diff --git a/apps/workbench/app/views/jobs/_show_recent.html.erb b/apps/workbench/app/views/jobs/_show_recent.html.erb index 85331f3e44..1dd0c828f2 100644 --- a/apps/workbench/app/views/jobs/_show_recent.html.erb +++ b/apps/workbench/app/views/jobs/_show_recent.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% content_for :css do %> table.topalign>tbody>tr>td { vertical-align: top; @@ -7,14 +11,14 @@ } <% end %> +<%= render partial: "paging", locals: {results: objects, object: @object} %> + - <% @jobs.sort_by { |j| j[:created_at] }.reverse.each do |j| %> + <% @objects.sort_by { |j| j[:created_at] }.reverse.each do |j| %> -
status - - progress uuid @@ -28,34 +32,19 @@
- <% if j.success == false %> - - <% elsif j.success %> - - <% elsif j.running %> - - <% else %> - - <% end %> - - <% if j.started_at and not j.finished_at %> - <% percent_total_tasks = 100 / (j.tasks_summary[:running] + j.tasks_summary[:done] + j.tasks_summary[:todo]) rescue 0 %> -
-
-
+
+ <%= render partial: 'job_progress', locals: {:j => j} %>
- <% end %>
- <%= link_to_if_arvados_object j.uuid %> + <%= link_to_if_arvados_object j %> <%= j.script %> @@ -93,7 +82,7 @@ <% if j.finished_at.is_a? Time %> <%= raw('ran ' + distance_of_time_in_words(j.finished_at, j.started_at).sub('about ','~').sub(' ',' ')) %> - <% elsif j.running %> + <% elsif j.state == "Running" %> ✔ <%= j.tasks_summary[:done] %> ✈ <%= j.tasks_summary[:running] %> ✉ <%= j.tasks_summary[:todo] %> @@ -133,4 +122,3 @@
-