X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d7b22fd7d905e4fa44452775d9db6a06a50da8c..4ed794e2803ef9812dbc7ae938a8e17b3b9714c1:/apps/workbench/app/views/work_unit/_show_child.html.erb diff --git a/apps/workbench/app/views/work_unit/_show_child.html.erb b/apps/workbench/app/views/work_unit/_show_child.html.erb deleted file mode 100644 index dc88a216db..0000000000 --- a/apps/workbench/app/views/work_unit/_show_child.html.erb +++ /dev/null @@ -1,104 +0,0 @@ -
-
-
-
- <%# column offset 0 %> - - - <%# column offset 2 %> -
- <%= current_obj.progress %> -
- - <%# column offset 4 %> - <% if not current_obj %> -
- <% else %> -
- <% if current_obj.state_label.in? ["Complete", "Failed", "Cancelled"] %> - <% if current_obj.log_collection %> - <% logCollection = Collection.find? current_obj.log_collection %> - <% if logCollection %> - <%= link_to "Log", job_path(current_obj.uuid, anchor: "Log") %> - <% else %> - Log unavailable - <% end %> - <% end %> - <% elsif current_obj.state_label == "Running" %> - <% job = Job.find? current_obj.uuid %> - <% if job %> - <%= link_to "Log", job_path(current_obj.uuid, anchor: "Log") %> - <% else %> - Log unavailable - <% end %> - <% end %> -
- - <%# column offset 5 %> - <% if current_obj.state_label != "Queued" %> -
- <% if current_obj.started_at %> - <% walltime = ((if current_obj.finished_at then current_obj.finished_at else Time.now() end) - current_obj.started_at) %> - <% cputime = (current_obj.runtime_constraints.andand[:min_nodes] || 1) * - ((current_obj.finished_at || Time.now()) - current_obj.started_at) %> - <%= render_runtime(walltime, false) %> - <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/walltime).round(1) %>⨯)<% end %> - <% end %> -
- <% end %> - - <% if current_obj.state_label == "Queued" %> - <%# column offset 5 %> -
- <% queuetime = Time.now - Time.parse(current_obj.created_at.to_s) %> - Queued for <%= render_runtime(queuetime, false) %>. -
- <% elsif current_obj.state_label == "Running" %> - <%# column offset 8 %> -
- - <%= current_obj.tasks_summary[:done] %> <%= "task".pluralize(current_obj.tasks_summary[:done]) %> done, - <%= current_obj.tasks_summary[:failed] %> failed, - <%= current_obj.tasks_summary[:running] %> running, - <%= current_obj.tasks_summary[:todo] %> pending - -
- <% elsif current_obj.state_label.in? ["Complete", "Failed", "Cancelled"] %> - <%# column offset 8 %> -
- <% if current_obj.output %> - <%= link_to_arvados_object_if_readable(current_obj.output, 'Output data not available', friendly_name: true) %> - <% elsif current_obj.output %> - <%= link_to_arvados_object_if_readable(current_obj.output, 'Output data not available', link_text: "Output of #{current_obj.label}") %> - <% else %> - No output. - <% end %> -
- <% end %> - - <% if current_obj.state_label.in? ["Queued", "Running"] and @object.editable? %> - <%# column offset 11 %> -
- <%= form_tag "/jobs/#{current_obj.uuid}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %> - <%= hidden_field_tag :return_to, url_for(@object) %> - <%= button_tag "Cancel", {class: 'btn btn-xs btn-danger', id: "cancel-job-button"} %> - <% end %> -
- <% end %> - <% end %> -
-
-
- -
-
- <%= render partial: 'work_unit/show_component', locals: {wu: current_obj} %> -
-
-