Skip to contentSkip to conversation

bitbake: toaster: Fix the table data so that it matches the column order

PATCH In review Michael Wood 2 participants 2 messages Oct 29, 2014 – Nov 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: toaster: Fix the table data so that it matches the column order

This fixes the issue where the column is under the wrong table header.

[YOCTO #6684]

---
 bitbake/lib/toaster/toastergui/templates/target.html | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/templates/target.html +6 -4
index 564fd27..c879c39d 100644
@@ -65,6 +65,7 @@
     {% include "basetable_top.html" %}
     {% for package in objects %}
     <tr>
+      {# order of the table data must match the columns defined in template's context tablecols  #}
         <td class="package_name">
             <a href="{% url 'package_included_detail' build.id target.id package.id %}">
             {{package.name}}
@@ -79,16 +80,17 @@
             {{package.version|filtered_packageversion:package.revision}}
             </a>
         </td>
+        <td class="license">
+            {{package.license}}
+        </td>
         <td class="size sizecol">
             {{package.size|filtered_installedsize:package.installed_size|filtered_filesizeformat}}
         </td>
+
         <td class="size_over_total sizecol">
             {{package|filter_sizeovertotal:packages_sum}}
         </td>
-        <td class="license">
-            {{package.license}}
-        </td>
-        <td class="depends">
+       <td class="depends">
             {% with deps=package.runtime_dependencies %}
             {% with deps_count=deps|length %}
             {% if deps_count > 0 %}
Signature · 1 line
1.9.1
#1 lore raw

Taken for submission.

Can you, please, use the [review-request] tag in the subject, as I have a filter on that tag that sorts email, and (hopefully) triggers some automated tests on the patch ?

Cheers,
Alex

Quoted 56 lines · Michael Wood

This fixes the issue where the column is under the wrong table header.

[YOCTO #6684]

---
 bitbake/lib/toaster/toastergui/templates/target.html | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/templates/target.html +1 -0
index 564fd27..c879c39d 100644
@@ -65,6 +65,7 @@
     {% include "basetable_top.html" %}
     {% for package in objects %}
     <tr>
+      {# order of the table data must match the columns defined in
 template's context tablecols  #}
         <td class="package_name">
             <a href="{% url 'package_included_detail' build.id target.id

package.id %}">

             {{package.name}}
bitbake/lib/toaster/toastergui/templates/target.html +5 -4
@@ -79,16 +80,17 @@
             {{package.version|filtered_packageversion:package.revision}}
             </a>
         </td>
+        <td class="license">
+            {{package.license}}
+        </td>
         <td class="size sizecol">
 
 {{package.size|filtered_installedsize:package.installed_size|filtered_filesizeformat}}
         </td>
+
         <td class="size_over_total sizecol">
             {{package|filter_sizeovertotal:packages_sum}}
         </td>
-        <td class="license">
-            {{package.license}}
-        </td>
-        <td class="depends">
+       <td class="depends">
             {% with deps=package.runtime_dependencies %}
             {% with deps_count=deps|length %}
             {% if deps_count > 0 %}

--
1.9.1

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

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC