projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote-tracking branch 'origin/master' into 3605-improved-dashboard
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
application
/
_job_status_label.html.erb
1
<% status = Job.state j %>
2
<% to_label = {
3
"Canceled" => "danger",
4
"Completed" => "success",
5
"Running" => "info",
6
"Failed" => "danger",
7
"Queued" => "default",
8
nil => "default"
9
} %>
10
11
<span class="label label-<%= to_label[status] %>"><%= if defined? title then title else status.downcase end %></span>