X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e4f96fc61cd9c85f91bdb0020bc365f2f4825ffb..ef2572886ea8693f16316cbfe537053f106a2bb5:/apps/workbench/app/views/application/_pipeline_status_label.html.erb diff --git a/apps/workbench/app/views/application/_pipeline_status_label.html.erb b/apps/workbench/app/views/application/_pipeline_status_label.html.erb index 020ce81c57..88722726dc 100644 --- a/apps/workbench/app/views/application/_pipeline_status_label.html.erb +++ b/apps/workbench/app/views/application/_pipeline_status_label.html.erb @@ -1,11 +1,13 @@ -<% if p.success %> - finished -<% elsif p.success == false %> +<% if p.state == 'Complete' %> + complete +<% elsif p.state == 'Failed' %> failed -<% elsif p.active %> +<% elsif p.state == 'RunningOnServer' || p.state == 'RunningOnClient' %> running +<% elsif p.state == 'Paused' %> + paused <% else %> - <% if (p.components.select do |k,v| v[:job] end).length == 0 %> + <% if not p.components.values.any? { |c| c[:job] rescue false } %> not started <% else %> not running