Merge branch '3178-discoverable-parameters' closes #3178
[arvados.git] / apps / workbench / app / views / application / _pipeline_status_label.html.erb
1 <% if p.state == 'Complete' %>
2   <span class="label label-success">finished</span>
3 <% elsif p.state == 'Failed' %>
4   <span class="label label-danger">failed</span>
5 <% elsif p.state == 'RunningOnServer' || p.state == 'RunningOnClient' %>
6   <span class="label label-info">running</span>
7 <% else %>
8   <% if not p.components.values.any? { |c| c[:job] rescue false } %>
9     <span class="label label-default">not started</span>
10   <% else %>
11     <span class="label label-default">not running</span>
12   <% end %>
13 <% end %>