X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/31baddea7535d8ba6ca812086264b71efdccbc29..0eb72b526bf8bbb011551ecf019f604e17a534f1:/apps/workbench/app/views/work_units/_show_child.html.erb diff --git a/apps/workbench/app/views/work_units/_show_child.html.erb b/apps/workbench/app/views/work_units/_show_child.html.erb index 2693334bc2..53f3e43da2 100644 --- a/apps/workbench/app/views/work_units/_show_child.html.erb +++ b/apps/workbench/app/views/work_units/_show_child.html.erb @@ -1,10 +1,14 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +
- <% if not current_obj %> -
+
<% else %> -
- <%= render partial: 'work_units/show_log_link', locals: {wu: current_obj} %> -
- <% walltime = current_obj.walltime %> <% cputime = current_obj.cputime %> + <% runningtime = current_obj.runningtime %>
<% if walltime and cputime %> - <%= render_runtime(walltime, false) %> - <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/walltime).round(1) %>⨯)<% end %> + <%= render_runtime([walltime, runningtime].max, false) %> + <% if cputime > 0 %> / <%= render_runtime(cputime, false) %> (<%= (cputime/runningtime).round(1) %>⨯)<% end %> <% end %>
@@ -40,26 +41,13 @@ <%= current_obj.child_summary_str %>
- <% elsif current_obj.is_finished? %> -
- <% outputs = current_obj.outputs %> - <% if outputs.any? %> - <% if outputs.size == 1 %> - <%= link_to_arvados_object_if_readable(outputs[0], 'Output data not available', link_text: "Output of #{current_obj.label}") %> - <% else %> - <%= render partial: 'work_units/show_outputs', locals: {id: current_obj.uuid, outputs: outputs, align:"pull-right"} %> - <% end %> - <% else %> - No output. - <% end %> -
<% end %>
<% if current_obj.can_cancel? and @object.editable? %> <%= form_tag "#{current_obj.uri}/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-child-button"} %> + <%= button_tag "Cancel", {class: 'btn btn-xs btn-warning', id: "cancel-child-button"} %> <% end %> <% end %>
@@ -67,9 +55,9 @@
-
-
- <%= render partial: 'work_units/show_component', locals: {wu: current_obj} %> + <% content_url = url_for(controller: :work_units, action: :show_child_component, id: @object.uuid, object_type: @object.class.to_s) %> +
+