X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a1d70a2116673ac46f4946115bdb5048137689a2..a9b4a906124081439326fedc1a1e73fae9c2f40b:/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 dc9f00de16..018d49f5e4 100644 --- a/apps/workbench/app/views/pipeline_instances/_running_component.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_running_component.html.erb @@ -39,7 +39,7 @@ <% if current_job[:state] == "Queued" %> <%# column offset 5 %>
- <% queuetime = Time.now - Time.iso8601(current_job[:created_at]) %> + <% queuetime = Time.now - Time.parse(current_job[:created_at].to_s) %> Queued for <%= render_runtime(queuetime, true) %>. <% begin %> <% if current_job[:queue_position] == 0 %> @@ -75,7 +75,7 @@
<% end %> - <% if current_job[:state].in? ["Queued", "Running"] %> + <% if current_job[:state].in? ["Queued", "Running"] and @object.editable? %> <%# column offset 11 %>
<%= form_tag "/jobs/#{current_job[:uuid]}/cancel", remote: true, style: "display:inline; padding-left: 1em" do |f| %>