X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2b0a7c3f635bc2340956d670c6aeda417dd11cec..136f77bed67bd349fb73053379dcb7bae6a16592:/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 ece81676d8..17073fe98c 100644 --- 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", @@ -8,4 +7,4 @@ nil => "default" } %> - <%= if defined? title then title else status.downcase end %> + <%= if defined? title then title else j[:state].downcase end %>