X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bbaaeabfc2d28c8a24f106b81e6677832cd68b3d..81f6ebc139c29723b62fc0f5e6d0588dfb85897b:/apps/workbench/app/views/pipeline_instances/_running_component.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_running_component.html.erb b/apps/workbench/app/views/pipeline_instances/_running_component.html.erb index a10218a98f..038efece35 100644 --- a/apps/workbench/app/views/pipeline_instances/_running_component.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_running_component.html.erb @@ -31,7 +31,7 @@ <% end %> - <% if Job::state(current_job).in? ["Complete", "Failed", "Canceled"] %> + <% if current_job[:state].in? ["Complete", "Failed", "Cancelled"] %>
<% if pj[:output_uuid] %> <%= link_to_if_arvados_object pj[:output_uuid], friendly_name: true %> @@ -41,7 +41,7 @@ No output. <% end %>
- <% elsif Job::state(current_job) == "Running" %> + <% elsif current_job[:state] == "Running" %>
<%= pj[:progress_bar] %>
@@ -51,7 +51,7 @@ <%= button_tag "Cancel", {class: 'btn btn-xs btn-danger', id: "cancel-job-button"} %> <% end %> - <% elsif Job::state(current_job) == "Queued" %> + <% elsif current_job[:state] == "Queued" %>
<% queuetime = Time.now - current_job[:created_at] %> Queued for <%= render_runtime(queuetime, true) %>.