projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #4036
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
application
/
_job_status_label.html.erb
diff --git
a/apps/workbench/app/views/application/_job_status_label.html.erb
b/apps/workbench/app/views/application/_job_status_label.html.erb
index ece81676d806bbbb470340581cab71d5a01a24ab..17073fe98cbae839ba24ae12698dc294c2506044 100644
(file)
--- a/
apps/workbench/app/views/application/_job_status_label.html.erb
+++ b/
apps/workbench/app/views/application/_job_status_label.html.erb
@@
-1,4
+1,3
@@
-<% status = Job.state j %>
<% to_label = {
"Cancelled" => "danger",
"Complete" => "success",
<% to_label = {
"Cancelled" => "danger",
"Complete" => "success",
@@
-8,4
+7,4
@@
nil => "default"
} %>
nil => "default"
} %>
- <span class="label label-<%= to_label[
status] %>"><%= if defined? title then title else status
.downcase end %></span>
+ <span class="label label-<%= to_label[
j[:state]] %>"><%= if defined? title then title else j[:state]
.downcase end %></span>