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: [review-request] bbarrosp/all-pages
Date: Mon, 17 Nov 2014 18:46:29 +0000	[thread overview]
Message-ID: <546A4285.8020805@intel.com> (raw)
In-Reply-To: <D08A493C.4E1D5%belen.barros.pena@intel.com>

On 13/11/14 11:40, Barros Pena, Belen wrote:
> This branch:
>
> * Fixes the layout of the dependencies modal dialog
> * Removes the external link icon from the target name column when the cell
> is empty
> * Adds the 'no results' state to the all layers page
>
> Thanks!
>
> Belén
>
commit e8107bbb44afeec888667f5239afa33bf71235b4

<td class="target">
                  {{o.name}}
-                <a target="_blank" 
href="{{o.get_layersource_view_url}}"><i class="icon-share 
get-info"></i></a>
+                {% if o.name %}
+                    <a target="_blank" 
href="{{o.get_layersource_view_url}}"><i class="icon-share 
get-info"></i></a>
+                {% endif%}
          </td>

A tiny tiny niggle would be that {{o.name}} could be inside the if 
statement so that when you read it, it's not "use this var...  now check 
it exists" the templating engine will do the right thing so it's just a 
reading issue.

commit 8c38eec9e48e2bcf492584f70991056a3513c479

IMO we should avoid using 'Named access on the Window object' as they're 
a bit dodgy/too magic[1]. But as you know other templates in toaster 
already have this same code, so we may as commit it and fix it with a 
next refactoring commit.

other than that looks good to me.

Michael

[1] good article about that here 
http://tjvantoll.com/2012/07/19/dom-element-references-as-global-variables/




  reply	other threads:[~2014-11-17 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 11:40 [review-request] bbarrosp/all-pages Barros Pena, Belen
2014-11-17 18:46 ` Michael Wood [this message]
2014-11-18 14:33   ` Barros Pena, Belen
2014-11-18 15:07     ` Michael Wood
2014-11-20 10:21       ` Damian, Alexandru
2014-11-20 10:47         ` Damian, Alexandru

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=546A4285.8020805@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.