aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-03-15 01:00:29 +0000
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-03-24 18:32:19 +0000
commit8d71bd39947dd909d02c8d33847e5852c9f20f19 (patch)
treeb009faf74f1d4735cdc39be4d68b36a00ba271e4 /lib
parent0047dd486c23707dd0fd7f9a2ae485b987d0b3e3 (diff)
downloadbitbake-8d71bd39947dd909d02c8d33847e5852c9f20f19.tar.gz
toaster: Change "0 found" to "No found"
Change the string in the h1 when search returns no results from "0 things found" to "None things found". The change applies to the BitBake variables, tasks, recipes, packages built, time, CPU and disk I/O tables. [YOCTO #5981] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/toaster/toastergui/templates/bpackage.html6
-rw-r--r--lib/toaster/toastergui/templates/configvars.html6
-rwxr-xr-xlib/toaster/toastergui/templates/recipes.html6
-rw-r--r--lib/toaster/toastergui/templates/tasks.html6
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/toaster/toastergui/templates/bpackage.html b/lib/toaster/toastergui/templates/bpackage.html
index 7da8ce7e1..dad0d7f48 100644
--- a/lib/toaster/toastergui/templates/bpackage.html
+++ b/lib/toaster/toastergui/templates/bpackage.html
@@ -10,10 +10,10 @@
<div class="span10">
<div class="page-header">
<h1>
- {% if request.GET.filter or request.GET.search and objects.count > 0 %}
+ {% if request.GET.search and objects.paginator.count > 0 %}
{{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found
- {%elif objects.paginator.count == 0%}
- No Packages
+ {%elif request.GET.search and objects.paginator.count == 0%}
+ No packages found
{%else%}
Packages
{%endif%}
diff --git a/lib/toaster/toastergui/templates/configvars.html b/lib/toaster/toastergui/templates/configvars.html
index d7052534f..24cb2a542 100644
--- a/lib/toaster/toastergui/templates/configvars.html
+++ b/lib/toaster/toastergui/templates/configvars.html
@@ -10,10 +10,10 @@
<div class="row-fluid span10">
<div class="page-header">
<h1>
- {% if request.GET.filter or request.GET.search and objects.count > 0 %}
+ {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
{{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found
- {%elif objects.paginator.count == 0%}
- No variables
+ {%elif request.GET.filter and objects.paginator.count == 0 or request.GETs.search and objects.paginator.count == 0 %}
+ No variables found
{%else%}
Configuration
{%endif%}
diff --git a/lib/toaster/toastergui/templates/recipes.html b/lib/toaster/toastergui/templates/recipes.html
index 860d30d31..22c3d1a5a 100755
--- a/lib/toaster/toastergui/templates/recipes.html
+++ b/lib/toaster/toastergui/templates/recipes.html
@@ -10,10 +10,10 @@
<div class="span10">
<div class="page-header">
<h1>
- {% if request.GET.filter or request.GET.search and objects.count > 0 %}
+ {% if request.GET.search and objects.paginator.count > 0 %}
{{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found
- {%elif objects.paginator.count == 0%}
- No Recipes
+ {%elif request.GET.search and objects.paginator.count == 0%}
+ No recipes found
{%else%}
Recipes
{%endif%}
diff --git a/lib/toaster/toastergui/templates/tasks.html b/lib/toaster/toastergui/templates/tasks.html
index d881811bd..a2629dc1c 100644
--- a/lib/toaster/toastergui/templates/tasks.html
+++ b/lib/toaster/toastergui/templates/tasks.html
@@ -8,10 +8,10 @@
<div class="span10">
<div class="page-header">
<h1>
- {% if request.GET.filter or request.GET.search and objects.count > 0 %}
+ {% if request.GET.filter or request.GET.search and objects.paginator.count > 0 %}
{{objects.paginator.count}} task{{objects.paginator.count|pluralize}} found
- {%elif objects.paginator.count == 0%}
- No tasks
+ {%elif request.GET.filter or request.GET.search and objects.paginator.count == 0%}
+ No tasks found
{%else%}
{{title}}
{%endif%}