projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '3634-tab-state' refs #3634
[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>