summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/status.tpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/status.tpl b/templates/status.tpl
index 534caa4..4f4b34b 100644
--- a/templates/status.tpl
+++ b/templates/status.tpl
@@ -121,13 +121,11 @@
% end
<td>{{spec['interval_nice']}}</td>
<td>{{spec['due_nice']}}</td>
-% if publish_failures:
- if spec['last_run_exit'] is not "0":
+% if publish_failures and spec['last_run_exit'] is not "0":
<td><details>
<summary>{{spec['last_run_exit']}}: {{publish_failrues}} Show log</summary>
<p>{{spec['last_run_error']}}</p>
</details></td>
-% end
% else:
<td>{{spec['last_run_exit']}}</td>
% end