Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 459C0E008DD; Mon, 16 Mar 2015 03:22:23 -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 89E13E00712 for ; Mon, 16 Mar 2015 03:22:20 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 16 Mar 2015 03:19:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,407,1422950400"; d="scan'208";a="680683515" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga001.fm.intel.com with ESMTP; 16 Mar 2015 03:22:20 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.236]) by IRSMSX151.ger.corp.intel.com ([169.254.4.7]) with mapi id 14.03.0195.001; Mon, 16 Mar 2015 10:22:18 +0000 From: "Barros Pena, Belen" To: "toaster@yoctoproject.org" Thread-Topic: [Toaster] [review-request][PATCH] bitbake: toaster: Project page fix project layers tooltip Thread-Index: AQHQX9MUN/IuiOFRxEubYYK3PNEgOg== Date: Mon, 16 Mar 2015 10:22:18 +0000 Message-ID: References: <1426265711-30447-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1426265711-30447-1-git-send-email-michael.g.wood@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.8.150116 x-originating-ip: [10.237.224.30] MIME-Version: 1.0 Subject: Re: [review-request][PATCH] bitbake: toaster: Project page fix project layers tooltip 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, 16 Mar 2015 10:22:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 13/03/2015 16:55, "Michael Wood" wrote: >Make sure the tooltip for the project page shows correct vcs reference >by using the value of get_vcs_reference and align the tooltip on the >right. > >[YOCTO #7155] The tooltips look good, but the revision does not appear in them immediately when you add a layer: only after a page refresh. Thanks! Bel=E9n > >Signed-off-by: Michael Wood >--- > bitbake/lib/toaster/toastergui/templates/project.html | 2 +- > bitbake/lib/toaster/toastergui/views.py | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/templates/project.html >b/bitbake/lib/toaster/toastergui/templates/project.html >index 54590ee..15210db 100644 >--- a/bitbake/lib/toaster/toastergui/templates/project.html >+++ b/bitbake/lib/toaster/toastergui/templates/project.html >@@ -293,7 +293,7 @@ vim: expandtab tabstop=3D2 > Import layer

> >diff --git a/bitbake/lib/toaster/toastergui/views.py >b/bitbake/lib/toaster/toastergui/views.py >index 8034cfc..d770795 100755 >--- a/bitbake/lib/toaster/toastergui/views.py >+++ b/bitbake/lib/toaster/toastergui/views.py >@@ -2131,9 +2131,8 @@ if toastermain.settings.MANAGED: > "giturl": x.layercommit.layer.vcs_url, > "url": x.layercommit.layer.layer_index_url, > "layerdetailurl": reverse("layerdetails", >args=3D(x.layercommit.pk,)), >- # This branch name is actually the release >- "branch" : { "name" : x.layercommit.commit, >"layersource" : x.layercommit.up_branch.layer_source.name if >x.layercommit.up_branch !=3D None else None}}, >- prj.projectlayer_set.all().order_by("id")), >+ "vcs_reference" : >x.layercommit.get_vcs_reference() }, >+ prj.projectlayer_set.all().order_by("id")), > "targets" : map(lambda x: {"target" : x.target, "task" : >x.task, "pk": x.pk}, prj.projecttarget_set.all()), > "freqtargets": freqtargets, > "releases": map(lambda x: {"id": x.pk, "name": x.name, >"description":x.description}, Release.objects.all()), >--=20 >2.1.0 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster