X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/78b94fd03e3c0a2d225d0ab8882ee62dee9f8a11..ee908b109a95ea962425b435a8a317231829b115:/apps/workbench/app/views/jobs/_show_status.html.erb diff --git a/apps/workbench/app/views/jobs/_show_status.html.erb b/apps/workbench/app/views/jobs/_show_status.html.erb index 52188830bb..ced5b1e978 100644 --- a/apps/workbench/app/views/jobs/_show_status.html.erb +++ b/apps/workbench/app/views/jobs/_show_status.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <%= render(partial: 'work_units/show_status', locals: {current_obj: @object, name: @object[:name] || 'this job'}) %>
@@ -22,18 +26,21 @@ <% end %>
+
+ Used in jobs +
+ <% jobs = Job.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]).limit(10) %> - <% if jobs.results.size > 0 - message = "Used in the jobs" + <% + too_many_message = "" if jobs.items_available > jobs.results.size - message += ' (' + (jobs.items_available - jobs.results.size).to_s + ' more jobs are not listed)' + too_many_message = (jobs.items_available - jobs.results.size).to_s + ' more jobs are not listed.' end %> -
- <%= message %> -
- -
+
+ <% if too_many_message != "" %> +

<%= too_many_message %>

+ <% end %> <% jobs.each do |j| %> <% j.components.each do |k, v| %> <% if v == @object.uuid %> @@ -47,5 +54,5 @@ <% end %> <% end %> <% end %> - <% end %> +