Skip to contentSkip to conversation

toaster: remove time from builds in progress

PATCH In review Belen Barros Pena 2 participants 2 messages Sep 14, 2015 – Sep 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: remove time from builds in progress

From: Belen Barros Pena <[email protected]>

In the 'latest builds' section of the all builds page, completed builds show the time they completed at. Builds in progress should not display such time, since they haven't completed yet.

This patch removes the time information that was showing for builds in progress, whatever that time actually was.

---
 bitbake/lib/toaster/toastergui/templates/mrb_section.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/mrb_section.html +3 -1
index 396fb8e..c5e9c87 100644
@@ -38,6 +38,7 @@
                 </a>
     {% endif %}
             </div>
+    {% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
             <div class="span2 lead">
                 {% if build.completed_on|format_build_date  %}
                     {{ build.completed_on|date:'d/m/y H:i' }}
@@ -45,6 +46,7 @@
                     {{ build.completed_on|date:'H:i' }}
                 {% endif %}
             </div>
+    {% endif %}
     {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
             <div class="span2 lead">
       {% if  build.errors.count %}
@@ -79,7 +81,7 @@
             </div>
     {%endif%}
     {%if build.outcome == build.IN_PROGRESS %}
-            <div class="span4">
+            <div class="span4 offset1">
                 <div class="progress" style="margin-top:5px;" data-toggle="tooltip" title="{{build.completeper}}% of tasks complete">
                     <div style="width: {{build.completeper}}%;" class="bar"></div>
                 </div>
Signature · 1 line
2.3.2 (Apple Git-55)
#1 lore raw

Looks good to me, submitted to bitbake-devel.

Elliot

Quoted 58 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

In the 'latest builds' section of the all builds page, completed builds show the time they completed at. Builds in progress should not display such time, since they haven't completed yet.

This patch removes the time information that was showing for builds in progress, whatever that time actually was.

---
 bitbake/lib/toaster/toastergui/templates/mrb_section.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -0
index 396fb8e..c5e9c87 100644
@@ -38,6 +38,7 @@
                 </a>
     {% endif %}
             </div>
+    {% if build.outcome == build.SUCCEEDED or build.outcome ==
 build.FAILED %}
             <div class="span2 lead">
                 {% if build.completed_on|format_build_date  %}
                     {{ build.completed_on|date:'d/m/y H:i' }}
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -0
@@ -45,6 +46,7 @@
                     {{ build.completed_on|date:'H:i' }}
                 {% endif %}
             </div>
+    {% endif %}
     {%if build.outcome == build.SUCCEEDED or build.outcome ==
 build.FAILED %}
             <div class="span2 lead">
       {% if  build.errors.count %}
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -1
@@ -79,7 +81,7 @@
             </div>
     {%endif%}
     {%if build.outcome == build.IN_PROGRESS %}
-            <div class="span4">
+            <div class="span4 offset1">
                 <div class="progress" style="margin-top:5px;"

data-toggle="tooltip" title="{{build.completeper}}% of tasks complete">

                     <div style="width: {{build.completeper}}%;"
class="bar"></div>
                 </div>

--
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