summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez Piedehierro <palvarez89@gmail.com>2017-07-07 01:06:11 +0100
committerPedro Alvarez Piedehierro <palvarez89@gmail.com>2017-07-08 03:23:15 +0100
commit42897a516027b1182a7d14b152bf388d94c20d98 (patch)
treead318b001f00dede29515985a6509811ddc9e16f
parent5bcb3e71099b283a699c6c45eb2767579f5f791a (diff)
downloadlorry-controller-42897a516027b1182a7d14b152bf388d94c20d98.tar.gz
templates/status: Add column to show failures
-rw-r--r--templates/status.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/status.tpl b/templates/status.tpl
index 2665861..a091d42 100644
--- a/templates/status.tpl
+++ b/templates/status.tpl
@@ -105,6 +105,8 @@
<th>Interval</th>
<th>Due</th>
<th>Job?</th>
+<th>Last run exit</th>
+
</tr>
% for i, spec in enumerate(run_queue):
% obj = json.loads(spec['text'])
@@ -119,6 +121,14 @@
% end
<td>{{spec['interval_nice']}}</td>
<td>{{spec['due_nice']}}</td>
+% if publish_failures and spec['last_run_exit'] is not "0":
+<td><details>
+ <summary>{{spec['last_run_exit']}}: Show log</summary>
+ <p>{{spec['last_run_error']}}</p>
+</details></td>
+% else:
+<td>{{spec['last_run_exit']}}</td>
+% end
% if spec['running_job'] and links:
<td><a href="/1.0/job-html/{{spec['running_job']}}">{{spec['running_job']}}</a></td>
% else: