2875: initial description on pipeline instance when the template has no name.
[arvados.git] / apps / workbench / app / views / application / _pipeline_status_label.html.erb
index f68d547aa5f07d2e6e5ce688af7698c12071e266..8abf65b4537cf01f22027e8be36586e8f414bdd0 100644 (file)
@@ -5,7 +5,7 @@
 <% elsif p.state == 'RunningOnServer' || p.state == 'RunningOnClient' %>
   <span class="label label-info">running</span>
 <% else %>
-  <% if (p.components.select do |k,v| v[:job] end).length == 0 %>
+  <% if not p.components.values.any? { |c| c[:job] rescue false } %>
     <span class="label label-default">not started</span>
   <% else %>
     <span class="label label-default">not running</span>