Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9F266E00C52; Wed, 7 Oct 2015 03:58:01 -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 * [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 65913E00473 for ; Wed, 7 Oct 2015 03:57:57 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 07 Oct 2015 03:57:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,648,1437462000"; d="scan'208";a="575770082" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by FMSMGA003.fm.intel.com with ESMTP; 07 Oct 2015 03:57:57 -0700 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 7 Oct 2015 11:57:55 +0100 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.164]) by irsmsx112.ger.corp.intel.com ([169.254.1.176]) with mapi id 14.03.0248.002; Wed, 7 Oct 2015 11:57:55 +0100 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] toaster: Fix missing tooltips from layers on project configuration page Thread-Index: AQHRAO8EWHKV+NmSpEivCr0nUjUWeA== Date: Wed, 7 Oct 2015 10:57:54 +0000 Message-ID: References: <1444153880-31556-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1444153880-31556-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.5.5.150821 x-originating-ip: [10.252.7.47] MIME-Version: 1.0 Subject: Re: [PATCH] toaster: Fix missing tooltips from layers on project configuration page 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: Wed, 07 Oct 2015 10:58:01 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 06/10/2015 18:51, "toaster-bounces@yoctoproject.org on behalf of Michael Wood" wrote: >Re-enable the layer tooltips on the project configuration page. >This adds the required fields to the API used for the layer dependencies >to be able to show the metadata needed. > >[YOCTO #8295] This works for me: tooltips are back :) Thanks! Bel=E9n > >Signed-off-by: Michael Wood >--- > bitbake/lib/toaster/toastergui/static/js/projectpage.js | 5 +---- > bitbake/lib/toaster/toastergui/views.py | 16 >++++++++++------ > 2 files changed, 11 insertions(+), 10 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js >b/bitbake/lib/toaster/toastergui/static/js/projectpage.js >index 95cef18..8d68ce1 100644 >--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js >+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js >@@ -146,10 +146,7 @@ function projectPageInit(ctx) { >=20 > link.attr("href", layerObj.layerdetailurl); > link.text(layerObj.name); >- /* YOCTO #8024 >- link.tooltip({title: layerObj.giturl + " | "+ >layerObj.branch.name, placement: "right"}); >- branch name not accessible sometimes it is revision instead >- */ >+ link.tooltip({title: layerObj.vcs_url + " | "+ >layerObj.vcs_reference, placement: "right"}); >=20 > var trashItem =3D projectLayer.children("span"); > trashItem.click(function (e) { >diff --git a/bitbake/lib/toaster/toastergui/views.py >b/bitbake/lib/toaster/toastergui/views.py >index e07f0e2..2a9423b 100755 >--- a/bitbake/lib/toaster/toastergui/views.py >+++ b/bitbake/lib/toaster/toastergui/views.py >@@ -2761,12 +2761,16 @@ if True: > project =3D Project.objects.get(pk=3Dpid) > layer_version =3D Layer_Version.objects.get(pk=3Dlayerid) >=20 >- context =3D { 'project' : project, >- 'layerversion' : layer_version, >- 'layerdeps' : {"list": [{"id": dep.id, "name": >dep.layer.name} \ >- for dep in >layer_version.get_alldeps(project.id)]}, >- 'projectlayers': map(lambda prjlayer: >prjlayer.layercommit.id, ProjectLayer.objects.filter(project=3Dproject)) >- } >+ context =3D {'project' : project, >+ 'layerversion' : layer_version, >+ 'layerdeps' : {"list": [{"id": dep.id, >+ "name": dep.layer.name, >+ "layerdetailurl": reverse('layerdetails', args=3D(pid, >dep.pk)), >+ "vcs_url": dep.layer.vcs_url, >+ "vcs_reference": dep.get_vcs_reference()} \ >+ for dep in layer_version.get_alldeps(project.id)]}, >+ 'projectlayers': map(lambda prjlayer: >prjlayer.layercommit.id, ProjectLayer.objects.filter(project=3Dproject)) >+ } >=20 > return context >=20 >--=20 >2.1.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster