From 0df02c87573bf9a66df2e424cd9534e67a8ab3dc Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Mon, 21 Sep 2015 19:01:09 +0100 Subject: [PATCH] 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 --- lib/toaster/toastergui/templates/mrb_section.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 %} -
+
-- 2.47.3