aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-05 14:12:48 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-05 14:12:48 +0100
commitd5cbbd871ddfb4ec58626ed547f15c5edbb0e636 (patch)
tree815a457ced8794626467b7f833230cad44bd5d68
parentb67f953c9ad4ebc108aa5a6431ffbd6575c1e6f2 (diff)
downloadgovuk-mini-environment-admin-d5cbbd871ddfb4ec58626ed547f15c5edbb0e636.tar
govuk-mini-environment-admin-d5cbbd871ddfb4ec58626ed547f15c5edbb0e636.tar.gz
Don't show the danger styling for new jobs
-rw-r--r--app/views/shared/_jobs.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/shared/_jobs.html.erb b/app/views/shared/_jobs.html.erb
index 620bc2a..aa2ad41 100644
--- a/app/views/shared/_jobs.html.erb
+++ b/app/views/shared/_jobs.html.erb
@@ -15,6 +15,9 @@
'warning'
elsif job_state
'info'
+ elsif job['error_count'] == 0
+ # Job hasn't run yet
+ 'info'
else
'danger'
end