From f91dc87d4d79ae8af213ffa8cfc8aa268d7bcf83 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Piedehierro Date: Fri, 7 Jul 2017 01:06:11 +0100 Subject: templates/status.tpl: Add column to show failures Make all columns align to the top, so that the content stays in the same place when expanding the log output column. --- static/style.css | 1 + templates/status.tpl | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index 8a6937d..4998b2a 100644 --- a/static/style.css +++ b/static/style.css @@ -15,4 +15,5 @@ td { font-family: monospace; border-top: 1px solid black; text-align: left; + vertical-align: top; } diff --git a/templates/status.tpl b/templates/status.tpl index 2665861..939f77d 100644 --- a/templates/status.tpl +++ b/templates/status.tpl @@ -104,7 +104,9 @@ Path Interval Due +Last run exit Job? + % for i, spec in enumerate(run_queue): % obj = json.loads(spec['text']) @@ -118,7 +120,15 @@ {{spec['path']}} % end {{spec['interval_nice']}} -{{spec['due_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 % if spec['running_job'] and links: {{spec['running_job']}} % else: -- cgit v1.2.1