Skip to contentSkip to conversation

bitbake: toaster: Project page fix targets url and tooltip placement

PATCH In review Michael Wood 3 participants 3 messages Mar 19, 2015 – Mar 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: toaster: Project page fix targets url and tooltip placement

Make sure we point to the all targets page for the notification links. Also fix the tooltip placements and a minor typo on the targets page.

[YOCTO #7480]

---
 bitbake/lib/toaster/toastergui/templates/project.html | 4 ++--
 bitbake/lib/toaster/toastergui/templates/targets.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
bitbake/lib/toaster/toastergui/templates/project.html +2 -2
index badc8a6..f81517b 100644
@@ -299,7 +299,7 @@ vim: expandtab tabstop=2
         <a href="{% url 'importlayer' %}">Import layer</a></p>
       <ul class="unstyled configuration-list">
           <li ng-repeat="l in layers track by l.id" class="animate-repeat">
-            <a href="{[l.layerdetailurl]}" class="layer-info" data-toggle="tooltip" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a>
+            <a href="{[l.layerdetailurl]}" class="layer-info" data-toggle="tooltip" tooltip-placement="right" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a>
             <i class="icon-trash" ng-click="layerDel(l.id)" tooltip="Delete"></i>
                       </li>
       </ul>
@@ -434,7 +434,7 @@ angular.element(document).ready(function() {
   scope.urls.xhr_edit = "{% url 'xhr_projectedit' project.id %}";
   scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' %}";
   scope.urls.layers = "{% url 'layers' %}";
-  scope.urls.targets = "{% url 'targets' %}";
+  scope.urls.targets = "{% url 'all-targets' %}";
   scope.urls.importlayer = "{% url 'importlayer'%}";
   scope.urls.layer = "{% url 'base_layerdetails' %}";
   scope.project = {{prj|json}};
bitbake/lib/toaster/toastergui/templates/targets.html +1 -1
index f918d6c..27ff2be 100644
@@ -38,7 +38,7 @@
   {% else %}
     <div class="alert alert-info">
       <p class="lead">
-       Toaster has not target information. To generate target information you can:<br/>
+       Toaster has no target information. To generate target information you can:<br/>
        <ul class="lead">
        <li style="margin-top: 10px"> <a href="https://wiki.yoctoproject.org/wiki/Setting_up_a_hosted_managed_mode_for_Toaster#LayerSources">Configure a layer source</a></li>
        <li style="margin-top: 10px">  <a href="{% url 'importlayer' %}">Import a layer</a></li>
Signature · 1 line
2.1.0
#1 lore raw
Quoted 4 lines · Michael Wood

Make sure we point to the all targets page for the notification links. Also fix the tooltip placements and a minor typo on the targets page.

[YOCTO #7480]

It all looks good to me. Thanks for catching the typo!

Belén

Quoted 63 lines

---
bitbake/lib/toaster/toastergui/templates/project.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/targets.html | 2 +-

2 files changed, 3 insertions(+), 3 deletions(-)
bitbake/lib/toaster/toastergui/templates/project.html +0 -0
index badc8a6..f81517b 100644
@@ -299,7 +299,7 @@ vim: expandtab tabstop=2
        <a href="{% url 'importlayer' %}">Import layer</a></p>
      <ul class="unstyled configuration-list">
          <li ng-repeat="l in layers track by l.id"

class="animate-repeat">
- <a href="{[l.layerdetailurl]}" class="layer-info"
data-toggle="tooltip" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a>
+ <a href="{[l.layerdetailurl]}" class="layer-info"
data-toggle="tooltip" tooltip-placement="right" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a>

            <i class="icon-trash" ng-click="layerDel(l.id)"
tooltip="Delete"></i>
                      </li>
      </ul>
bitbake/lib/toaster/toastergui/templates/project.html +1 -1
@@ -434,7 +434,7 @@ angular.element(document).ready(function() {
  scope.urls.xhr_edit = "{% url 'xhr_projectedit' project.id %}";
  scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' %}";
  scope.urls.layers = "{% url 'layers' %}";
-  scope.urls.targets = "{% url 'targets' %}";
+  scope.urls.targets = "{% url 'all-targets' %}";
  scope.urls.importlayer = "{% url 'importlayer'%}";
  scope.urls.layer = "{% url 'base_layerdetails' %}";
  scope.project = {{prj|json}};
bitbake/lib/toaster/toastergui/templates/targets.html +0 -1
index f918d6c..27ff2be 100644
@@ -38,7 +38,7 @@
  {% else %}
    <div class="alert alert-info">
      <p class="lead">
-       Toaster has not target information. To generate target

information you can:<br/>
+ Toaster has no target information. To generate target information
you can:<br/>

       <ul class="lead">
       <li style="margin-top: 10px"> <a
href="https://wiki.yoctoproject.org/wiki/Setting_up_a_hosted_managed_mode_
for_Toaster#LayerSources">Configure a layer source</a></li>
       <li style="margin-top: 10px">  <a href="{% url 'importlayer'

%}">Import a layer</a></li>

Signature · 7 lines
2.1.0

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

Taken for submission,

Thank you,
Alex

Quoted 83 lines · Belen
Quoted 4 lines · Michael Wood

Make sure we point to the all targets page for the notification links. Also fix the tooltip placements and a minor typo on the targets page.

[YOCTO #7480]

It all looks good to me. Thanks for catching the typo!

Belén

Quoted 49 lines

---
bitbake/lib/toaster/toastergui/templates/project.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/targets.html | 2 +-

2 files changed, 3 insertions(+), 3 deletions(-)
bitbake/lib/toaster/toastergui/templates/project.html +0 -0
index badc8a6..f81517b 100644
@@ -299,7 +299,7 @@ vim: expandtab tabstop=2
        <a href="{% url 'importlayer' %}">Import layer</a></p>
      <ul class="unstyled configuration-list">
          <li ng-repeat="l in layers track by l.id"

class="animate-repeat">
- <a href="{[l.layerdetailurl]}" class="layer-info"
data-toggle="tooltip" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a>
+ <a href="{[l.layerdetailurl]}" class="layer-info"
data-toggle="tooltip" tooltip-placement="right" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a>

            <i class="icon-trash" ng-click="layerDel(l.id)"
tooltip="Delete"></i>
                      </li>
      </ul>
bitbake/lib/toaster/toastergui/templates/project.html +1 -1
@@ -434,7 +434,7 @@ angular.element(document).ready(function() {
  scope.urls.xhr_edit = "{% url 'xhr_projectedit' project.id %}";
  scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' %}";
  scope.urls.layers = "{% url 'layers' %}";
-  scope.urls.targets = "{% url 'targets' %}";
+  scope.urls.targets = "{% url 'all-targets' %}";
  scope.urls.importlayer = "{% url 'importlayer'%}";
  scope.urls.layer = "{% url 'base_layerdetails' %}";
  scope.project = {{prj|json}};
bitbake/lib/toaster/toastergui/templates/targets.html +0 -1
index f918d6c..27ff2be 100644
@@ -38,7 +38,7 @@
  {% else %}
    <div class="alert alert-info">
      <p class="lead">
-       Toaster has not target information. To generate target

information you can:<br/>
+ Toaster has no target information. To generate target information
you can:<br/>

Quoted 3 lines
       <ul class="lead">
       <li style="margin-top: 10px"> <a

href="

https://wiki.yoctoproject.org/wiki/Setting_up_a_hosted_managed_mode_

Quoted 11 lines

for_Toaster#LayerSources">Configure a layer source</a></li>

       <li style="margin-top: 10px">  <a href="{% url 'importlayer'

%}">Import a layer</a></li>
--
2.1.0

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

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

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC