Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7CCF4E00AF2; Tue, 10 Nov 2015 08:52:20 -0800 (PST) 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.24 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 53334E0034B for ; Tue, 10 Nov 2015 08:52:18 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 10 Nov 2015 08:52:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,271,1444719600"; d="scan'208";a="847110881" Received: from bbarrosp-mac03.isw.intel.com ([10.237.224.38]) by orsmga002.jf.intel.com with ESMTP; 10 Nov 2015 08:52:16 -0800 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 10 Nov 2015 16:52:13 +0000 Message-Id: <1447174333-14130-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.4.9 (Apple Git-60) Subject: [PATCH] [v2] toaster: Fix the download icon 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: Tue, 10 Nov 2015 16:52:20 -0000 From: Belen Barros Pena The 'all builds' page was missing the download icon next to the outcome icon, which allows you to download a build log from the 'all builds' page. This patch brings it back. It also adds a check in the project builds page to make sure the download icon only appears if the build generates a cooker log, since builds that fail at the build request stage do not generate a cooker log. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- bitbake/lib/toaster/toastergui/templates/projectbuilds.html | 11 ++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/builds.html b/bitbake/lib/toaster/toastergui/templates/builds.html index a27a121..c3cc266 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds.html +++ b/bitbake/lib/toaster/toastergui/templates/builds.html @@ -62,7 +62,13 @@ {% for build in objects %} - {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%}   + {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%} + {% if build.cooker_log_path %} +   + + + + {% endif %} {% for t in build.target_set.all %} diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html index bb38284..3402fc4 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html @@ -63,11 +63,12 @@ {% for build in objects %} {# if we have a build, just display it #} {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%} - {% if build.project %} -   - - - {% endif %} + {% if build.cooker_log_path %} +   + + + + {% endif %} -- 2.4.9 (Apple Git-60)