Skip to contentSkip to conversation

bbarrosp/all-pages

review-request Barros Pena, Belen 3 participants 6 messages Nov 13, 2014 – Nov 20, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 11 lines · Belen

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/

#2 lore raw
Quoted 25 lines · Michael Wood
Quoted 8 lines · Belen

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

Quoted 4 lines

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>

(quoted diff) +2 -0
+                {% if o.name %}
+                    <a target="_blank"

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

Quoted 5 lines
         </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"

When you put it that way, it does sound silly.

Quoted 4 lines

the templating engine will do the right thing so it's just a reading issue.

commit 8c38eec9e48e2bcf492584f70991056a3513c479

You mean like this?

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/a
ll-pages-v2&id=90c6ebf2647acd2e8feb0404700dd87467a4f8aa

Thanks!

Belén

Quoted 15 lines

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
/

#3 lore raw
Quoted 20 lines · Belen
Quoted 12 lines

commit e8107bbb44afeec888667f5239afa33bf71235b4

<td class="target">

                  {{o.name}}

- <a target="_blank"
href="{{o.get_layersource_view_url}}"><i class="icon-share get-info"></i></a>

(quoted diff) +2 -0
+                {% if o.name %}
+                    <a target="_blank"

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

Quoted 5 lines
          </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"

When you put it that way, it does sound silly.

Quoted 8 lines
Quoted 4 lines

the templating engine will do the right thing so it's just a reading issue.

commit 8c38eec9e48e2bcf492584f70991056a3513c479

You mean like this?

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/a
ll-pages-v2&id=90c6ebf2647acd2e8feb0404700dd87467a4f8aa

Yep. looks good to me.

Michael

#4 lore raw

Now that I think of it, we should enable 'strict' - mode javascript across all pages...

Quoted 44 lines · Michael Wood
Quoted 24 lines · Belen

commit e8107bbb44afeec888667f5239afa33bf71235b4

Quoted 11 lines

<td class="target">

                  {{o.name}}

- <a target="_blank"
href="{{o.get_layersource_view_url}}"><i class="icon-share get-info"></i></a>

(quoted diff) +2 -0
+                {% if o.name %}
+                    <a target="_blank"

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

Quoted 6 lines
          </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"

When you put it that way, it does sound silly.

the templating engine will do the right thing so it's just a

Quoted 2 lines

reading issue.

Quoted 8 lines
Quoted 2 lines

commit 8c38eec9e48e2bcf492584f70991056a3513c479

You mean like this?

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/
commit/?h=bbarrosp/a ll-pages-v2&id=90c6ebf2647acd2e8feb0404700dd87467a4f8aa

Yep. looks good to me.

Michael

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC
#5 lore raw

And taken, pushed to toaster/master

Quoted 58 lines · Alexandru

Now that I think of it, we should enable 'strict' - mode javascript across all pages...

Quoted 36 lines · Michael Wood
Quoted 24 lines · Belen

commit e8107bbb44afeec888667f5239afa33bf71235b4

Quoted 11 lines

<td class="target">

                  {{o.name}}

- <a target="_blank"
href="{{o.get_layersource_view_url}}"><i class="icon-share get-info"></i></a>

(quoted diff) +2 -0
+                {% if o.name %}
+                    <a target="_blank"

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

Quoted 6 lines
          </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"

When you put it that way, it does sound silly.

the templating engine will do the right thing so it's just a

Quoted 2 lines

reading issue.

Quoted 8 lines
Quoted 2 lines

commit 8c38eec9e48e2bcf492584f70991056a3513c479

You mean like this?

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/
commit/?h=bbarrosp/a ll-pages-v2&id=90c6ebf2647acd2e8feb0404700dd87467a4f8aa

Yep. looks good to me.

Quoted 8 lines

Michael

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

--
Alex Damian
Yocto Project
SSG / OTC

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC