Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C2663E00B20; Thu, 26 Nov 2015 06:59:01 -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 * [192.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B4280E00ADF for ; Thu, 26 Nov 2015 06:59:00 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 26 Nov 2015 06:59:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,347,1444719600"; d="scan'208";a="847632169" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga001.fm.intel.com with ESMTP; 26 Nov 2015 06:58:59 -0800 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 Nov 2015 14:58:37 +0000 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.163]) by IRSMSX156.ger.corp.intel.com ([169.254.3.110]) with mapi id 14.03.0248.002; Thu, 26 Nov 2015 14:58:37 +0000 From: "Barros Pena, Belen" To: "Smith, Elliot" , "Wood, Michael G" Thread-Topic: [Toaster] [PATCH] toaster: Bring back the download icon Thread-Index: AQHRKFoamxYRrx78w02CeQSaWfAO256uZSSA Date: Thu, 26 Nov 2015 14:58:36 +0000 Message-ID: References: <1447167061-11829-1-git-send-email-belen.barros.pena@linux.intel.com> <56420E66.9070707@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.8.151023 x-originating-ip: [10.237.224.34] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH] toaster: Bring back 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: Thu, 26 Nov 2015 14:59:01 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <0503E9FABD4A9C4D91FE0669C3BAF71D@intel.com> Content-Transfer-Encoding: quoted-printable On 26/11/2015 14:51, "toaster-bounces@yoctoproject.org on behalf of Smith, Elliot" wrote: >On 10 November 2015 at 15:33, Michael Wood > wrote: > >On 10/11/15 14:51, Belen Barros Pena wrote: > >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. > >Did this ever get a v2, incorporating Michael's comments? Yes, this is merged to master already http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3D88f9310ce0015be= 53 9ffefbeff4b64c73779fdc9 Cheers Bel=E9n > > >Elliot >=20 > > > >Signed-off-by: Belen Barros Pena >--- > bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/bitbake/lib/toaster/toastergui/templates/builds.html >b/bitbake/lib/toaster/toastergui/templates/builds.html >index a27a121..9f07211 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 %} > build.id }}"> > >- build.id %}">{%if build.outcome =3D=3D build.SUCCEEDED%}= class=3D"icon-ok-sign success">{%elif build.outcome =3D=3D build.FAILE= D%}class=3D"icon-minus-sign error">{%else%}{%endif%}   >+ build.id %}">{%if build.outcome =3D=3D build.SUCCEEDED%}= class=3D"icon-ok-sign success">{%elif build.outcome =3D=3D build.FAILE= D%}class=3D"icon-minus-sign error">{%else%}{%endif%} >+ {% if build.project %} >+   >+ build.id "cookerlog" >build.id %}"> >+ data-original-title=3D"Download build log"> >+ >+ {% endif %} > > > {% for t in build.target_set.all %} > > > > >Could you format the template logic on that first line so that there is >indentation in the logic sequence, for ease of reading. To avoid an empty >else statement it's better to switch round the logic to be inclusive. > >Something more like > >{% if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D=3D build.F= AILED >%} build.id %}"> build.SUCCEEDED %} icon-ok-sign success {% elif build.outcome =3D=3D >build.FAILED %} icon-minus-sign error {% endif %} "> {% endif %} > >more info on=20 >https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster#Templates > > >Thanks > >Michael > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster > > > > > > > > > >--=20 >Elliot Smith >Software Engineer >Intel Open Source Technology Centre > > > >