All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>,
	"toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: [PATCH] toaster: Fix missing tooltips from layers on project configuration page
Date: Mon, 12 Oct 2015 17:13:54 +0100	[thread overview]
Message-ID: <561BDC42.6050200@intel.com> (raw)
In-Reply-To: <D23AB933.66EEF%belen.barros.pena@intel.com>

Could someone review/merge this.  I think it also fixes [YOCTO #3251 
<https://bugzilla.yoctoproject.org/show_bug.cgi?id=8251>]

Michael

On 07/10/15 11:57, Barros Pena, Belen wrote:
>
> On 06/10/2015 18:51, "toaster-bounces@yoctoproject.org on behalf of
> Michael Wood" <toaster-bounces@yoctoproject.org on behalf of
> michael.g.wood@intel.com> 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én
>
>> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
>> ---
>> 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) {
>>
>>        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"});
>>
>>        var trashItem = 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 = Project.objects.get(pk=pid)
>>          layer_version = Layer_Version.objects.get(pk=layerid)
>>
>> -        context = { '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=project))
>> -                  }
>> +        context = {'project' : project,
>> +            'layerversion' : layer_version,
>> +            'layerdeps' : {"list": [{"id": dep.id,
>> +                "name": dep.layer.name,
>> +                "layerdetailurl": reverse('layerdetails', args=(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=project))
>> +        }
>>
>>          return context
>>
>> -- 
>> 2.1.4
>>
>> -- 
>> _______________________________________________
>> toaster mailing list
>> toaster@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/toaster



  reply	other threads:[~2015-10-12 16:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06 17:51 [PATCH] toaster: Fix missing tooltips from layers on project configuration page Michael Wood
2015-10-07 10:57 ` Barros Pena, Belen
2015-10-12 16:13   ` Michael Wood [this message]
2015-10-13  8:46     ` Smith, Elliot
2015-10-13  9:00       ` Smith, Elliot
  -- strict thread matches above, loose matches on Subject: below --
2015-10-13  8:58 Elliot Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561BDC42.6050200@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=belen.barros.pena@intel.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.