{% elif job.has_failed() %}
<p class="has-text-danger">
<small>
- {{ _("Failed %s") % job.finished_at | format_date(shorter=True) }}
+ {% set args = {
+ "duration" : job.duration | format_time,
+ "when" : job.finished_at | format_date(shorter=True),
+ } %}
+
+ {{ _("Failed %(when)s after %(duration)s") % args }}
</small>
</p>
{% elif job.has_finished() %}
<p class="has-text-success">
<small>
- {{ _("Finished %s") % job.finished_at | format_date(shorter=True) }}
+ {% set args = {
+ "duration" : job.duration | format_time,
+ "when" : job.finished_at | format_date(shorter=True),
+ } %}
+
+ {{ _("Finished %(when)s in %(duration)s") % args }}
</small>
</p>
{% endif %}
{% endif %}
- {# Runtime #}
- {% if job.has_finished() %}
- <div class="level-item">
- <div class="tag">
- {{ job.duration | format_time }}
- </div>
- </div>
- {% endif %}
-
{# Logs #}
{% if job.show_log() %}
<div class="level-item">