summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-09-08 17:11:24 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-09-09 16:28:08 +0000
commitc491acc03665213e01e40fc9ef81f5e326cf9ff9 (patch)
treedcd8f7b8b47b7840068bdb769bfdb664eb9bde3f /templates
parent1f9facecce6a0ff2887810feb6223f63f82dba11 (diff)
downloadlorry-controller-c491acc03665213e01e40fc9ef81f5e326cf9ff9.tar.gz
Add lists of failed, all jobs to lorry spec infobaserock/liw/lc-list-failed-jobs
This adds them to both the JSON and HTML outputs.
Diffstat (limited to 'templates')
-rw-r--r--templates/lorry.tpl25
1 files changed, 25 insertions, 0 deletions
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 @@
<p>Updated: {{timestamp}}</p>
+<h2>Failed jobs for this Lorry</h2>
+
+% if lorry['failed_jobs']:
+<p>
+% for job_id in lorry['failed_jobs']:
+<a href="/1.0/job-html/{{job_id}}">{{job_id}}</a>
+% end
+</p>
+% else:
+<p>No failed jobs.</p>
+% end
+
+<h2>All jobs for this lorry</h2>
+
+% if lorry['jobs']:
+<p>
+% for job_id in lorry['jobs']:
+<a href="/1.0/job-html/{{job_id}}">{{job_id}}</a>
+% end
+</p>
+% else:
+<p>No jobs.</p>
+% end
+
+
</body>
</html>