From 5a5c29c52a94d236a350b05bd19f6cd4da8358db Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Tue, 10 Mar 2015 23:26:58 +0200 Subject: [PATCH] Mark job as error when it's not healthy --- web/views/dashboard.haml | 5 +++++ web/views/job.haml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/web/views/dashboard.haml b/web/views/dashboard.haml index 7d5bfc3..f5fb303 100644 --- a/web/views/dashboard.haml +++ b/web/views/dashboard.haml @@ -7,10 +7,15 @@ %th Job %th Last performed at %th + %th - for job in @jobs %tr %td= job.job_id %td= job.last_performed_at || "—" + %td + - if job.healthy == false + %a{href: url("/job/#{job.id}")} + %span.label.label-danger Error %td %a{href: url("/job/#{job.id}")} Log diff --git a/web/views/job.haml b/web/views/job.haml index 831c7a1..9dc8fcd 100644 --- a/web/views/job.haml +++ b/web/views/job.haml @@ -5,4 +5,9 @@ %h2 "#{@job.job_id}" Log: + +- if @job.healthy == false + .alert.alert-danger{role: "alert"} + An error occurs during the last execution of this job. Check the log below for details. + %pre= @job.log