X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/137cd3ce818d4789355ea8d92cd2e2ea73318c4f..78b94fd03e3c0a2d225d0ab8882ee62dee9f8a11:/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 eff1e75260..52188830bb 100644 --- a/apps/workbench/app/views/jobs/_show_status.html.erb +++ b/apps/workbench/app/views/jobs/_show_status.html.erb @@ -1,95 +1,51 @@ +<%= render(partial: 'work_units/show_status', locals: {current_obj: @object, name: @object[:name] || 'this job'}) %> -
- script, version - | - progress - <%# format:'js' here helps browsers avoid using the cached js - content in html context (e.g., duplicate tab -> see - javascript) %> - <%= link_to '(refresh)', {format: :js}, {class: 'refresh hide', remote: true, method: 'get'} %> - | -- | - output - | -|
---|---|---|---|---|
- <%= @object[:script] %> - <%= @object[:script_version] %> - |
-
- <%= render partial: 'job_progress', locals: {:j => @object} %>
- <% if @object.running == false %>
- <% if @object[:job].andand[:uuid] %>
-
- <%= link_to("..."+@object[:job][:uuid].last(15), job_url(id: @object[:job][:uuid])) %>
-
+ <% jobs = Job.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]).limit(10) %>
+ <% if jobs.results.size > 0
+ message = "Used in the jobs"
+ if jobs.items_available > jobs.results.size
+ message += ' (' + (jobs.items_available - jobs.results.size).to_s + ' more jobs are not listed)'
+ end
+ %>
+
+ <%= message %>
+
- <% current_job = @object %>
- <% if current_job.andand[:log] %>
- <% fixup = /([a-f0-9]{32}\+\d+)(\+?.*)/.match(current_job[:log])%>
- <% Collection.limit(1).where(uuid: fixup[1]).each do |c| %>
- <% c.files.each do |file| %>
- - log - - <% end %> - <% end %> - <% end %> - <% end %> +
+ <% jobs.each do |j| %>
+ <% j.components.each do |k, v| %>
+ <% if v == @object.uuid %>
+
+ <%= k %>
+ component of
+ <%= link_to_if_arvados_object j, friendly_name: true %>
+ created at
+ <%= render_localized_date(j.created_at) %>.
+
<% end %>
- | - <%= render(partial: 'job_status_label', - locals: { :j => @object }) %> - | - <%= link_to_if_arvados_object @object[:output], {:thumbnail => true} %> - | -|