X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8716b38d3cd20640c28b6fe048927309a0f916cd..0b187b107128a57c1f0c00057d39979ab53d4137:/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 cec63403ef..bb5444f238 100644 --- a/apps/workbench/app/views/jobs/_show_status.html.erb +++ b/apps/workbench/app/views/jobs/_show_status.html.erb @@ -1,27 +1,24 @@ -
-<% pj = {} %> -<% pj[:job] = @object %> -<% pj[:name] = @object[:name] || "this job" %> -<% tasks = JobTask.filter([['job_uuid', '=', @object.uuid]]).results %> -<%= render partial: 'pipeline_instances/running_component', locals: {tasks: tasks, pj: pj, i: 0, expanded: true} %> -
+<%= render(partial: 'work_units/show_status', locals: {current_obj: @object, name: @object[:name] || 'this job'}) %> -
-
- Used in pipelines -
-
-<% pi = PipelineInstance.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]) %> +
+
+ Used in pipelines +
+
+ <% pi = PipelineInstance.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]) %> -<% pi.each do |pipeline| %> - <% pipeline.components.each do |k, v| %> - <% if v[:job] and v[:job][:uuid] == @object.uuid %> -
- <%= k %> component of <%= link_to_if_arvados_object pipeline, friendly_name: true %> - created at <%= render_localized_date(pipeline.created_at) %>. -
+ <% pi.each do |pipeline| %> + <% pipeline.components.each do |k, v| %> + <% if v[:job] and v[:job][:uuid] == @object.uuid %> +
+ <%= k %> + component of + <%= link_to_if_arvados_object pipeline, friendly_name: true %> + created at + <%= render_localized_date(pipeline.created_at) %>. +
+ <% end %> + <% end %> <% end %> - <% end %> -<% end %> -
+