Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D8B79E008CF; Tue, 18 Nov 2014 06:34:54 -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: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -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] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1C724E007C0 for ; Tue, 18 Nov 2014 06:34:39 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 18 Nov 2014 06:33:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,410,1413270000"; d="scan'208";a="624257606" Received: from irsmsx155.ger.corp.intel.com ([163.33.192.3]) by fmsmga001.fm.intel.com with ESMTP; 18 Nov 2014 06:33:58 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.55]) by IRSMSX155.ger.corp.intel.com ([169.254.14.228]) with mapi id 14.03.0195.001; Tue, 18 Nov 2014 14:33:57 +0000 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [review-request] bbarrosp/all-pages Thread-Index: AQHP/zapO+EjooS+vU+05DIMCHGkJpxlLyuAgAFLxIA= Date: Tue, 18 Nov 2014 14:33:56 +0000 Message-ID: References: <546A4285.8020805@intel.com> In-Reply-To: <546A4285.8020805@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.5.141003 x-originating-ip: [10.237.224.33] MIME-Version: 1.0 Subject: Re: [review-request] bbarrosp/all-pages 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, 18 Nov 2014 14:34:54 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <52406B1B3E3E9B49873E86928E759D8C@intel.com> Content-Transfer-Encoding: quoted-printable On 17/11/2014 18:46, "Michael Wood" wrote: >On 13/11/14 11:40, Barros Pena, Belen wrote: >> This branch: >> >> * Fixes the layout of the dependencies modal dialog >> * Removes the external link icon from the target name column when the >>cell >> is empty >> * Adds the 'no results' state to the all layers page >> >> Thanks! >> >> Bel=E9n >> >commit e8107bbb44afeec888667f5239afa33bf71235b4 > > > {{o.name}} >- href=3D"{{o.get_layersource_view_url}}">get-info"> >+ {% if o.name %} >+ href=3D"{{o.get_layersource_view_url}}">get-info"> >+ {% endif%} > > >A tiny tiny niggle would be that {{o.name}} could be inside the if >statement so that when you read it, it's not "use this var... now check >it exists"=20 When you put it that way, it does sound silly. >the templating engine will do the right thing so it's just a >reading issue. > >commit 8c38eec9e48e2bcf492584f70991056a3513c479 You mean like this? http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=3Dbbarrosp= /a ll-pages-v2&id=3D90c6ebf2647acd2e8feb0404700dd87467a4f8aa Thanks! Bel=E9n > >IMO we should avoid using 'Named access on the Window object' as they're >a bit dodgy/too magic[1]. But as you know other templates in toaster >already have this same code, so we may as commit it and fix it with a >next refactoring commit. > >other than that looks good to me. > >Michael > >[1] good article about that here >http://tjvantoll.com/2012/07/19/dom-element-references-as-global-variables >/ > >