Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 21537E00DE2; Mon, 14 Sep 2015 09:45:50 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 03861E00B0B for ; Mon, 14 Sep 2015 09:45:45 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 14 Sep 2015 09:45:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,529,1437462000"; d="scan'208";a="561508779" Received: from bbarrosp-mac03.isw.intel.com ([10.237.224.81]) by FMSMGA003.fm.intel.com with ESMTP; 14 Sep 2015 09:45:43 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Mon, 14 Sep 2015 17:45:30 +0100 Message-Id: <1442249130-31730-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.3.2 (Apple Git-55) Subject: [review-request] [PATCH] toaster: remove time from builds in progress X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2015 16:45:50 -0000 From: Belen Barros Pena 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 --- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 396fb8e..c5e9c87 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -38,6 +38,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' }} @@ -45,6 +46,7 @@ {{ build.completed_on|date:'H:i' }} {% endif %}
+ {% endif %} {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
{% if build.errors.count %} @@ -79,7 +81,7 @@
{%endif%} {%if build.outcome == build.IN_PROGRESS %} -
+
-- 2.3.2 (Apple Git-55)