Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 34212E00A7D; Wed, 12 Aug 2015 04:07:27 -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: * -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.115 listed in list.dnswl.org] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E8AE1E00A26 for ; Wed, 12 Aug 2015 04:07:22 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 12 Aug 2015 04:06:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,660,1432623600"; d="scan'208";a="782615419" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga002.jf.intel.com with ESMTP; 12 Aug 2015 04:06:53 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.29]) by IRSMSX151.ger.corp.intel.com ([169.254.4.151]) with mapi id 14.03.0224.002; Wed, 12 Aug 2015 12:06:46 +0100 From: "Barros Pena, Belen" To: "toaster@yoctoproject.org" Thread-Topic: [Toaster] [review-request][PATCH 1/2] toastergui: Add tooltip for layers on project configuration page Thread-Index: AQHQ1O76xC7oMdDFgkmoJiDEqoX75A== Date: Wed, 12 Aug 2015 11:06:46 +0000 Message-ID: References: <1439304320-9958-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1439304320-9958-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.3.150624 x-originating-ip: [10.237.224.32] MIME-Version: 1.0 Subject: Re: [review-request][PATCH 1/2] toastergui: Add tooltip for 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, 12 Aug 2015 11:07:27 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <1A609ECD82BAE44A8F8395AB922BF44A@intel.com> Content-Transfer-Encoding: quoted-printable On 11/08/2015 15:45, "toaster-bounces@yoctoproject.org on behalf of Michael Wood" wrote: >Adds back the tooltip for layers on the new project configuration page. This is looking good from the UI side. Thanks! Bel=E9n > >Signed-off-by: Michael Wood >--- > bitbake/lib/toaster/toastergui/static/js/projectpage.js | 6 ++---- > bitbake/lib/toaster/toastergui/views.py | 7 ++++++- > 2 files changed, 8 insertions(+), 5 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js >b/bitbake/lib/toaster/toastergui/static/js/projectpage.js >index 146319e..feca227 100644 >--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js >+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js >@@ -146,10 +146,8 @@ 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 7f52513..6f0b9b5 100755 >--- a/bitbake/lib/toaster/toastergui/views.py >+++ b/bitbake/lib/toaster/toastergui/views.py >@@ -2619,7 +2619,12 @@ if True: > context =3D { 'project' : project, > 'layerversion' : layer_version, > 'layerdeps' : { "list": [ >- [{"id": y.id, "name": y.layer.name} for y in >x.depends_on.get_equivalents_wpriority(project)][0] for x in >layer_version.dependencies.all()]}, >+ [{"id": y.id, >+ "name": y.layer.name, >+ "layerdetailurl" : y.get_detailspage_url(pid), >+ "vcs_url" : y.layer.vcs_url, >+ "vcs_reference" :y.get_vcs_reference()} >+ for y in >x.depends_on.get_equivalents_wpriority(project)][0] for x in >layer_version.dependencies.all()]}, > 'projectlayers': map(lambda prjlayer: >prjlayer.layercommit.id, ProjectLayer.objects.filter(project=3Dproject)) > } >=20 >--=20 >2.1.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster