1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
5 <% if p.state == 'Complete' %>
6 <span class="label label-success">complete</span>
7 <% elsif p.state == 'Failed' %>
8 <span class="label label-danger">failed</span>
9 <% elsif p.state == 'RunningOnServer' || p.state == 'RunningOnClient' %>
10 <span class="label label-info">running</span>
11 <% elsif p.state == 'Paused' %>
12 <span class="label label-default">paused</span>
14 <% if not p.components.values.any? { |c| c[:job] rescue false } %>
15 <span class="label label-default">not started</span>
17 <span class="label label-default">not running</span>