summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-17 10:22:33 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-17 10:22:33 +0000
commit689174532cc4920d2ef96bcebeb8a1adaf985804 (patch)
tree6391e7df464371b7a55aac8c1fc35b7b4b9d5d29 /templates
parente15d8f5c2a6ea406b4cc8b60b2fd79dc36aeecd2 (diff)
parentc491acc03665213e01e40fc9ef81f5e326cf9ff9 (diff)
downloadlorry-controller-689174532cc4920d2ef96bcebeb8a1adaf985804.tar.gz
Merge remote-tracking branch 'origin/baserock/liw/lc-list-failed-jobs'
Reviewed-By: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
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>