summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-03-16 14:14:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-01 10:22:42 +0100
commit3719ecfc22f59b5af1e951fea2632a3cd325bfb6 (patch)
tree572ee4b1a79b4310a8d7bfc40e4bb2cf68976699
parent7920219543f80ef14385420c11d7d9a110944ac1 (diff)
downloadpoky-3719ecfc22f59b5af1e951fea2632a3cd325bfb6.tar.gz
bitbake: toaster: Show "No builds found" in the builds table
Making sure the h1 of build.html shows "No builds found" instead of "0 builds found" when a search returns no results. This matches the builds table to all other Toaster tables. (Bitbake rev: c8495c38b892d22a1f85286f34b0fdbc17febf78) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/toastergui/templates/build.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/build.html b/bitbake/lib/toaster/toastergui/templates/build.html
index 7d13cc89a1..afa390fc17 100644
--- a/bitbake/lib/toaster/toastergui/templates/build.html
+++ b/bitbake/lib/toaster/toastergui/templates/build.html
@@ -85,10 +85,10 @@
85 {% else %} 85 {% else %}
86 <div class="page-header top-air"> 86 <div class="page-header top-air">
87 <h1> 87 <h1>
88 {% if request.GET.filter and objects.count or request.GET.search and objects.count > 0 %} 88 {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
89 {{objects.paginator.count}} build{{objects.paginator.count|pluralize}} found 89 {{objects.paginator.count}} build{{objects.paginator.count|pluralize}} found
90 {%elif objects.paginator.count == 0%} 90 {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
91 No builds 91 No builds found
92 {%else%} 92 {%else%}
93 All builds 93 All builds
94 {%endif%} 94 {%endif%}