summaryrefslogtreecommitdiff
path: root/lib/toaster
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-09-21 19:01:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-23 22:43:11 +0100
commit0df02c87573bf9a66df2e424cd9534e67a8ab3dc (patch)
treed9e4e94aed2809a9fd842e93ddfca746ab8fb9ee /lib/toaster
parenta4015768183e5a3fa39a6c2b4dea0088ca182d80 (diff)
downloadbitbake-0df02c87573bf9a66df2e424cd9534e67a8ab3dc.zip
toaster: remove time from builds in progress
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster')
-rw-r--r--lib/toaster/toastergui/templates/mrb_section.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html
index 13e2d0e4..b2c49fe3 100644
--- a/lib/toaster/toastergui/templates/mrb_section.html
+++ b/lib/toaster/toastergui/templates/mrb_section.html
@@ -51,6 +51,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' }}
@@ -58,6 +59,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 %}
@@ -92,7 +94,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>