From d5cbbd871ddfb4ec58626ed547f15c5edbb0e636 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 5 Jul 2018 14:12:48 +0100 Subject: Don't show the danger styling for new jobs --- app/views/shared/_jobs.html.erb | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3