Skip to contentSkip to conversation

bitbake: toastergui: fix show / hide columns in all builds table

PATCH In review Belen Barros Pena 2 participants 2 messages Aug 21, 2015 – Aug 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: toastergui: fix show / hide columns in all builds table

From: Belen Barros Pena <[email protected]>

The classes errors_no and warnings_no were removed from the td tags in the builds.html template. That broke the show / hide columns functionality, which would hide only the table heading, but not the data cells.

This patch brings back those classes so that you can hide and show the errors and warnings information.

---
 bitbake/lib/toaster/toastergui/templates/builds.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/builds.html +2 -2
index b68fa6f..c0d0c64 100644
@@ -81,12 +81,12 @@
                         <a href="{% url "tasks" build.id %}?filter=outcome%3A4">{{exectask.count}} task{{exectask.count|pluralize}}</a>
                     {%endif%}
             </td>
-            <td class="errors.count">
+            <td class="errors.count errors_no">
                 {% if  build.errors.count %}
                     <a class="errors.count error" href="{% url "builddashboard" build.id %}#errors">{{build.errors.count}} error{{build.errors.count|pluralize}}</a>
                 {%endif%}
             </td>
-            <td class="warnings.count">{% if  build.warnings.count %}<a class="warnings.count warning" href="{% url "builddashboard" build.id %}#warnings">{{build.warnings.count}} warning{{build.warnings.count|pluralize}}</a>{%endif%}</td>
+            <td class="warnings.count warnings_no">{% if  build.warnings.count %}<a class="warnings.count warning" href="{% url "builddashboard" build.id %}#warnings">{{build.warnings.count}} warning{{build.warnings.count|pluralize}}</a>{%endif%}</td>
             <td class="time"><a href="{% url "buildtime" build.id %}">{{build.timespent_seconds|sectohms}}</a></td>
             <td class="output">
               {% if build.outcome == build.SUCCEEDED %}
Signature · 1 line
2.3.2 (Apple Git-55)
#1 lore raw

Looks good to me, submitted to bitbake-devel.

Elliot

Quoted 55 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

The classes errors_no and warnings_no were removed from the td tags in the builds.html template. That broke the show / hide columns functionality, which would hide only the table heading, but not the data cells.

This patch brings back those classes so that you can hide and show the errors and warnings information.

---
 bitbake/lib/toaster/toastergui/templates/builds.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/builds.html +0 -0
index b68fa6f..c0d0c64 100644
@@ -81,12 +81,12 @@
                         <a href="{% url "tasks" build.id
 %}?filter=outcome%3A4">{{exectask.count}}

task{{exectask.count|pluralize}}</a>

                     {%endif%}
             </td>
bitbake/lib/toaster/toastergui/templates/builds.html +1 -1
-            <td class="errors.count">
+            <td class="errors.count errors_no">
                 {% if  build.errors.count %}
                     <a class="errors.count error" href="{% url

"builddashboard" build.id %}#errors">{{build.errors.count}} error{{build.errors.count|pluralize}}</a>

                 {%endif%}
             </td>

- <td class="warnings.count">{% if build.warnings.count %}<a
class="warnings.count warning" href="{% url "builddashboard" build.id %}#warnings">{{build.warnings.count}} warning{{build.warnings.count|pluralize}}</a>{%endif%}</td>
+ <td class="warnings.count warnings_no">{% if
build.warnings.count %}<a class="warnings.count warning" href="{% url "builddashboard" build.id %}#warnings">{{build.warnings.count}} warning{{build.warnings.count|pluralize}}</a>{%endif%}</td>
<td class="time"><a href="{% url "buildtime" build.id
%}">{{build.timespent_seconds|sectohms}}</a></td>

             <td class="output">
               {% if build.outcome == build.SUCCEEDED %}

--
2.3.2 (Apple Git-55)

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

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre