[ARVADOS] created: 69963d8ac67ce1a0711cb3e92a75b2961cbc76b9
Git user
git at public.curoverse.com
Wed Sep 21 09:37:22 EDT 2016
at 69963d8ac67ce1a0711cb3e92a75b2961cbc76b9 (commit)
commit 69963d8ac67ce1a0711cb3e92a75b2961cbc76b9
Author: Lucas Di Pentima <lucas at curoverse.com>
Date: Wed Sep 21 10:36:04 2016 -0300
10037: Avoid showing progressbar on Workbench's Dashboard when a container is not running, instead show it's state label.
diff --git a/apps/workbench/app/views/projects/_show_dashboard.html.erb b/apps/workbench/app/views/projects/_show_dashboard.html.erb
index e8742f4..f0044e1 100644
--- a/apps/workbench/app/views/projects/_show_dashboard.html.erb
+++ b/apps/workbench/app/views/projects/_show_dashboard.html.erb
@@ -63,9 +63,13 @@
<div class="clearfix">
<%= link_to_if_arvados_object p, {friendly_name: true} %>
<div class="pull-right" style="width: 40%">
+ <% if wu.is_running? %>
<div class="progress" style="margin-bottom: 0px">
<% wu.progress %>
</div>
+ <% else %>
+ <span class="label label-<%=wu.state_bootstrap_class%>"><%=wu.state_label%></span>
+ <% end %>
</div>
</div>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list