summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-02-27 15:12:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-09 14:33:52 +0000
commitd2c9f704f2232a80b8bd0cd236d1b7f7bc250116 (patch)
tree5a89ed6c33f5e64cf8bdc0f2c1c1ae6b71e5c80f /bitbake/lib/toaster/toastergui/templates
parent16c03f85416a5959ac979d0abe7a5aac7f16a89d (diff)
downloadast2050-yocto-poky-d2c9f704f2232a80b8bd0cd236d1b7f7bc250116.zip
ast2050-yocto-poky-d2c9f704f2232a80b8bd0cd236d1b7f7bc250116.tar.gz
bitbake: toasterui: fix the h1 in the project builds page
It was not displaying the number of search results. (Bitbake rev: df8bdd357b126a0436c15cf66a13d398df273867) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectbuilds.html26
1 files changed, 12 insertions, 14 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html
index afcf519..07595f2 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html
@@ -7,21 +7,19 @@
{% endblock %}
{% block projectinfomain %}
- <div class="page-header">
- <h1>
- {% if objects.paginator.count == 0 and request.GET.filter or request.GET.search %}
- No builds found
- {% else %}
- {% if request.GET.filter or request.GET.search %}
- {{objects.paginator.count}} builds found
- {% else %}
- Project builds <small>({{objects.paginator.count}})</small>
- {% endif %}
- {% endif %}
- <i class="icon-question-sign get-help heading-help" title="This page lists all the builds for the current project"></i>
- </h1>
- </div>
+ <div class="page-header">
+ <h1>
+ {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
+ {{objects.paginator.count}} build{{objects.paginator.count|pluralize}} found
+ {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
+ No builds found
+ {%else%}
+ All builds
+ {%endif%}
+ <i class="icon-question-sign get-help heading-help" title="This page lists all the builds for the current project"></i>
+ </h1>
+ </div>
{% if objects.paginator.count == 0 %}
OpenPOWER on IntegriCloud