webcron/templates/mail-failed-runs.html.twig

17 lines
481 B
Twig

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Some cronjobs are Failing</title>
</head>
<body>
<p>Some cronjobs are failing</p>
{% for job in jobs %}
<h2>{{ job.name }} ({{ attribute(job.data, 'host-displayname') }})</h2>
<p>Last failed on {{ job.data.lastfail.timestamp | date("d/m/Y H:i:s") }}</p>
{% if job.data.lastfail.output is not empty %}
<pre>{{ job.data.lastfail.output }}</pre>
{% endif %}
{% endfor %}
</body>
</html>