From: Michael Tremer Date: Sun, 30 Apr 2023 10:06:28 +0000 (+0000) Subject: jobs: Add build duration X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=522de037c8673bbe89844aff2554faca5f86c309;p=pbs.git jobs: Add build duration Signed-off-by: Michael Tremer --- diff --git a/src/templates/jobs/modules/list.html b/src/templates/jobs/modules/list.html index 7b88df05..bf41b2e5 100644 --- a/src/templates/jobs/modules/list.html +++ b/src/templates/jobs/modules/list.html @@ -82,27 +82,43 @@ {% end %} {% if job.is_running() or job.has_failed() or job.has_finished() %} -
-
- {% if job.builder %} - - {{ _("Builder %s") % job.builder }} - - {% end %} +
+
+
+ {% if job.duration %} +
+ {{ format_time(job.duration) }} +
+ {% end %} + + {% if job.builder %} + + {{ _("on %s") % job.builder }} + + {% end %} +
- - {{ _("View Log") }} - +
+ - {% if job.can_be_retried() %} - - {{ _("Retry") }} - - {% elif job.is_running() %} - - {{ _("Abort") }} - - {% end %} + {% if job.can_be_retried() %} + + {% elif job.is_running() %} + + {% end %} +
{% end %}