From c491acc03665213e01e40fc9ef81f5e326cf9ff9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 8 Sep 2014 17:11:24 +0000 Subject: Add lists of failed, all jobs to lorry spec info This adds them to both the JSON and HTML outputs. --- templates/lorry.tpl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'templates') diff --git a/templates/lorry.tpl b/templates/lorry.tpl index fad85cd..7c475e0 100644 --- a/templates/lorry.tpl +++ b/templates/lorry.tpl @@ -40,5 +40,30 @@

Updated: {{timestamp}}

+

Failed jobs for this Lorry

+ +% if lorry['failed_jobs']: +

+% for job_id in lorry['failed_jobs']: +{{job_id}} +% end +

+% else: +

No failed jobs.

+% end + +

All jobs for this lorry

+ +% if lorry['jobs']: +

+% for job_id in lorry['jobs']: +{{job_id}} +% end +

+% else: +

No jobs.

+% end + + -- cgit v1.2.1