Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 504C9E008CF; Wed, 11 Feb 2015 04:21:20 -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 * [134.134.136.24 listed in list.dnswl.org] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2358CE008A7 for ; Wed, 11 Feb 2015 04:21:07 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 11 Feb 2015 04:16:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,558,1418112000"; d="scan'208";a="676302620" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga002.fm.intel.com with ESMTP; 11 Feb 2015 04:20:37 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.8]) by IRSMSX104.ger.corp.intel.com ([169.254.5.145]) with mapi id 14.03.0195.001; Wed, 11 Feb 2015 12:20:35 +0000 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [review-request][PATCH] bitbake: toaster: layerdetails Use new vcs reference api Thread-Index: AQHQRfUi/NWiHks2n0yMIsX0Ut+GqQ== Date: Wed, 11 Feb 2015 12:20:34 +0000 Message-ID: References: <1423586675-21515-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1423586675-21515-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.7.141117 x-originating-ip: [10.237.224.33] MIME-Version: 1.0 Subject: Re: [review-request][PATCH] bitbake: toaster: layerdetails Use new vcs reference api 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, 11 Feb 2015 12:21:20 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable This works great, but could we generate the tooltip on hover only when the revision is truncated? It's just a bit silly to show the tooltip when its content shows exactly what you just hovered over. Thanks! Bel=E9n On 10/02/2015 16:44, "Michael Wood" wrote: >Use the new layer_version api so that we return the vcs reference whether >that be the commit hash, brash name or the upstream branch to which the >layer >is associated with. > >[YOCTO #7192] > >Signed-off-by: Michael Wood >--- > bitbake/lib/toaster/toastergui/templates/layerdetails.html | 13 >++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html >b/bitbake/lib/toaster/toastergui/templates/layerdetails.html >index 4ffd071..79679c2 100644 >--- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html >+++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html >@@ -5,7 +5,7 @@ > {% block localbreadcrumb %} >
  • All layers
  • >
  • >- {{layerversion.layer.name}} ({{layerversion.commit|truncatechars:13}}) >+ {{layerversion.layer.name}} >({{layerversion.get_vcs_reference|truncatechars:13}}) >
  • > {% endblock %} > {% block projectinfomain %} >@@ -29,7 +29,7 @@ > layerVersion : { > name : "{{layerversion.layer.name}}", > id : {{layerversion.id}}, >- commit: "{{layerversion.commit}}", >+ commit: "{{layerversion.get_vcs_reference}}", > inCurrentPrj : {{layer_in_project}}, > url : "{% url 'layerdetails' layerversion.id %}", > sourceId: {{layerversion.layer_source_id}}, >@@ -66,7 +66,7 @@ > {% include "layers_dep_modal.html" %} >
    >
    >-

    {{layerversion.layer.name}} data-toggle=3D"tooltip" >title=3D"{{layerversion.commit}}">({{layerversion.commit|truncatechars:13}= }) >

    >+

    {{layerversion.layer.name}} data-toggle=3D"tooltip" >title=3D"{{layerversion.get_vcs_reference}}">({{layerversion.get_vcs_refer= en >ce|truncatechars:13}})

    >
    >
    >=20 >@@ -144,10 +144,10 @@ > >
    Brach, tag or commit
    >
    >- class=3D"current-value">{{layerversion.commit}} >+ class=3D"current-value">{{layerversion.get_vcs_reference}} >
    >
    >- >+ value=3D"{{layerversion.get_vcs_reference}}"> > > btn-link cancel">Cancel >
    >@@ -163,8 +163,7 @@ > {% for ld in layerversion.dependencies.all %} > >
  • >- >- title=3D"{{ld.depends_on.layer.vcs_url}} | {{ld.depends_on.commit}}" >href=3D"{% url 'layerdetails' ld.depends_on.id >%}">{{ld.depends_on.layer.name}} >+ title=3D"{{ld.depends_on.layer.vcs_url}} | >{{ld.depends_on.get_vcs_reference}}" href=3D"{% url 'layerdetails' >ld.depends_on.id %}">{{ld.depends_on.layer.name}} > title=3D"Delete"> >
  • >
    >--=20 >2.1.0 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster