Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6ABF5E00945; Thu, 12 Feb 2015 03:40:58 -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: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3DD2FE0093B for ; Thu, 12 Feb 2015 03:40:49 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 12 Feb 2015 03:40:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,565,1418112000"; d="scan'208";a="676878857" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga002.fm.intel.com with ESMTP; 12 Feb 2015 03:40:32 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.8]) by IRSMSX101.ger.corp.intel.com ([169.254.1.244]) with mapi id 14.03.0195.001; Thu, 12 Feb 2015 11:40:31 +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+GqZzs4LWAgAAEyAA= Date: Thu, 12 Feb 2015 11:40:30 +0000 Message-ID: References: <1423586675-21515-1-git-send-email-michael.g.wood@intel.com> <54DC8D2B.5040004@intel.com> In-Reply-To: <54DC8D2B.5040004@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: Thu, 12 Feb 2015 11:40:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <617610D4AAF8F94F92F5D44C601F8098@intel.com> Content-Transfer-Encoding: quoted-printable On 12/02/2015 11:23, "Michael Wood" wrote: >On 11/02/15 12:20, Barros Pena, Belen wrote: >> 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. > >Sure please could you open a separate bug for that as it's not related >to the vcs reference api patch Done https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D7312 Bel=E9n > >> 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 # >>>] >>> >>> 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" >>>=20 >>>title=3D"{{layerversion.commit}}">({{layerversion.commit|truncatechars:1= 3} >>>}) >>>

    >>> +

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

    >>>
    >>>
    >>> >>> @@ -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.commit}}"> >>> + >> 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}} >>> >>data-toggle=3D"tooltip" >>> title=3D"Delete"> >>>
  • >>>
    >>> --=20 >>> 2.1.0 >>> >>> --=20 >>> _______________________________________________ >>> toaster mailing list >>> toaster@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/toaster >