From 10b66de78c883ac1de173c95aa0ad0e862fc7c48 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Piedehierro Date: Fri, 7 Jul 2017 01:06:11 +0100 Subject: templates/status: Add column to show failures --- templates/status.tpl | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/templates/status.tpl b/templates/status.tpl index 2665861..0126180 100644 --- a/templates/status.tpl +++ b/templates/status.tpl @@ -104,23 +104,33 @@ Path Interval Due +Last run exit Job? + % for i, spec in enumerate(run_queue): % obj = json.loads(spec['text']) % name = obj.keys()[0] % fields = obj[name] -{{i+1}} +{{i+1}} % if links: -{{spec['path']}} +{{spec['path']}} % else: -{{spec['path']}} +{{spec['path']}} +% end +{{spec['interval_nice']}} +{{spec['due_nice']}} +% if publish_failures and spec['last_run_exit'] is not None and spec['last_run_error'] != "": +
+ {{spec['last_run_exit']}}: Show log +

{{spec['last_run_error']}}

+
+% else: +{{spec['last_run_exit']}} % end -{{spec['interval_nice']}} -{{spec['due_nice']}} % if spec['running_job'] and links: -{{spec['running_job']}} +{{spec['running_job']}} % else: % end -- cgit v1.2.1