X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3dccfa028282d8b667a7b447ea061b7eecc8618f..029656d8b2646bae51de03426a6496cbce0cc9d7:/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 f68d547aa5..9e5b71047b 100644 --- a/apps/workbench/app/views/application/_pipeline_status_label.html.erb +++ b/apps/workbench/app/views/application/_pipeline_status_label.html.erb @@ -4,8 +4,10 @@ failed <% 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