Merge branch 'master' into 3882-cancel-already-cancelled-job
[arvados.git] / apps / workbench / app / views / application / _job_status_label.html.erb
1 <% to_label = {
2      "Cancelled" => "danger",
3      "Complete" => "success",
4      "Running" => "info",
5      "Failed" => "danger",
6      "Queued" => "default",
7      nil => "default"
8    } %>
9
10   <span class="label label-<%= to_label[j[:state]] %>"><%= if defined? title then title else j[:state].downcase end %></span>