X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dcb6eaa5012bf1eea607c61209bee18723769c24..3fa4a2b6138e3e9e468dd885a743ca38f08f0755:/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 acf19fd6b4..d0db8673f1 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,10 @@
- <% if not current_obj %> -
+
<% else %> -
- <%= current_obj.link_to_log %> -
- <% walltime = current_obj.walltime %> <% cputime = current_obj.cputime %>
@@ -40,26 +36,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 +50,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) %> +
+