X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/27f5c1635d56c3f3cb6c5ef069c28db939eec2a1..e0f4124bd0156f7cb029e5330e256086962f9e8e:/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..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.state == 'Complete' %>
- finished
+ complete
<% elsif p.state == 'Failed' %>
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