Merge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user...
[arvados.git] / apps / workbench / app / views / application / _pipeline_status_label.html.erb
1 <% if p.success %>
2   <span class="label label-success">finished</span>
3 <% elsif p.success == false %>
4   <span class="label label-danger">failed</span>
5 <% elsif p.active %>
6   <span class="label label-info">running</span>
7 <% else %>
8   <% if (p.components.select do |k,v| v[:job] end).length == 0 %>
9     <span class="label label-default">not started</span>
10   <% else %>
11     <span class="label label-default">not running</span>
12   <% end %>
13 <% end %>