Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / work_units / _progress.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% if wu.is_running? %>
6   <% if @object.andand.uuid == wu.uuid and wu.progress == 0.0 %>
7     <span class="label label-<%= wu.state_bootstrap_class %>"> Active </span>
8   <% else%>
9     <div class="progress" style="margin-bottom: 0px">
10       <span class="progress-bar progress-bar-<%= wu.state_bootstrap_class %>" style="width: <%= wu.progress*100 %>%;">
11       </span>
12     </div>
13   <% end %>
14 <% else %>
15   <span class="label label-<%= wu.state_bootstrap_class %>"><%= wu.state_label %></span>
16 <% end %>