diff options
author | Pedro Alvarez Piedehierro <palvarez89@gmail.com> | 2017-07-07 01:06:11 +0100 |
---|---|---|
committer | Pedro Alvarez Piedehierro <palvarez89@gmail.com> | 2017-07-13 19:20:40 +0100 |
commit | f91dc87d4d79ae8af213ffa8cfc8aa268d7bcf83 (patch) | |
tree | 25eddeb378c9cc6f32d14519681a7f201a29c2c6 /templates | |
parent | 79bdd7d34958d5b84dce7d44c16154eb20cbfd1f (diff) | |
download | lorry-controller-f91dc87d4d79ae8af213ffa8cfc8aa268d7bcf83.tar.gz |
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.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/status.tpl | 12 |
1 files changed, 11 insertions, 1 deletions
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 @@ <th>Path</th> <th>Interval</th> <th>Due</th> +<th>Last run exit</th> <th>Job?</th> + </tr> % for i, spec in enumerate(run_queue): % obj = json.loads(spec['text']) @@ -118,7 +120,15 @@ <td>{{spec['path']}}</td> % end <td>{{spec['interval_nice']}}</td> -<td>{{spec['due_nice']}}</td> +<td nowrap>{{spec['due_nice']}}</td> +% if publish_failures and spec['last_run_exit'] is not None and spec['last_run_error'] != "": +<td><details> + <summary>{{spec['last_run_exit']}}: Show log</summary> + <p><pre>{{spec['last_run_error']}}</pre></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: |