diff options
author | Pedro Alvarez Piedehierro <palvarez89@gmail.com> | 2017-07-08 14:32:14 +0100 |
---|---|---|
committer | Pedro Alvarez Piedehierro <palvarez89@gmail.com> | 2017-07-08 14:32:14 +0100 |
commit | 4e1d77905b6778cb42bcf11e2e5f233ce102888c (patch) | |
tree | b86f850982d74e47dd1731a28801ae4726ab3406 | |
parent | 18d107751592026cce0e9d3bbadd63a459fa51ce (diff) | |
download | lorry-controller-4e1d77905b6778cb42bcf11e2e5f233ce102888c.tar.gz |
fixup?
-rw-r--r-- | templates/status.tpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/status.tpl b/templates/status.tpl index a091d42..fb38db3 100644 --- a/templates/status.tpl +++ b/templates/status.tpl @@ -121,11 +121,13 @@ % end <td>{{spec['interval_nice']}}</td> <td>{{spec['due_nice']}}</td> -% if publish_failures and spec['last_run_exit'] is not "0": +% if publish_failures: + if 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> +% end % else: <td>{{spec['last_run_exit']}}</td> % end |