From: Belen Barros Pena Date: Mon, 21 Sep 2015 18:01:09 +0000 (+0100) Subject: toaster: remove time from builds in progress X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0df02c87573bf9a66df2e424cd9534e67a8ab3dc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: remove time from builds in progress In the 'latest builds' section of the all builds page, completed builds show the time they completed at. Builds in progress should not display such time, since they haven't completed yet. This patch removes the time information that was showing for builds in progress, whatever that time actually was. Signed-off-by: Belen Barros Pena Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index 13e2d0e4521..b2c49fe3652 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/lib/toaster/toastergui/templates/mrb_section.html @@ -51,6 +51,7 @@ {% endif %} + {% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
{% if build.completed_on|format_build_date %} {{ build.completed_on|date:'d/m/y H:i' }} @@ -58,6 +59,7 @@ {{ build.completed_on|date:'H:i' }} {% endif %}
+ {% endif %} {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
{% if build.errors.count %} @@ -92,7 +94,7 @@
{%endif%} {%if build.outcome == build.IN_PROGRESS %} -
+