diff options
4 files changed, 12 insertions, 12 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index 7da8ce7e14..dad0d7f48e 100644 --- a/bitbake/lib/toaster/toastergui/templates/bpackage.html +++ b/bitbake/lib/toaster/toastergui/templates/bpackage.html | |||
@@ -10,10 +10,10 @@ | |||
10 | <div class="span10"> | 10 | <div class="span10"> |
11 | <div class="page-header"> | 11 | <div class="page-header"> |
12 | <h1> | 12 | <h1> |
13 | {% if request.GET.filter or request.GET.search and objects.count > 0 %} | 13 | {% if request.GET.search and objects.paginator.count > 0 %} |
14 | {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found | 14 | {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found |
15 | {%elif objects.paginator.count == 0%} | 15 | {%elif request.GET.search and objects.paginator.count == 0%} |
16 | No Packages | 16 | No packages found |
17 | {%else%} | 17 | {%else%} |
18 | Packages | 18 | Packages |
19 | {%endif%} | 19 | {%endif%} |
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index d7052534fc..24cb2a5427 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html | |||
@@ -10,10 +10,10 @@ | |||
10 | <div class="row-fluid span10"> | 10 | <div class="row-fluid span10"> |
11 | <div class="page-header"> | 11 | <div class="page-header"> |
12 | <h1> | 12 | <h1> |
13 | {% if request.GET.filter or request.GET.search and objects.count > 0 %} | 13 | {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %} |
14 | {{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found | 14 | {{objects.paginator.count}} variable{{objects.paginator.count|pluralize}} found |
15 | {%elif objects.paginator.count == 0%} | 15 | {%elif request.GET.filter and objects.paginator.count == 0 or request.GETs.search and objects.paginator.count == 0 %} |
16 | No variables | 16 | No variables found |
17 | {%else%} | 17 | {%else%} |
18 | Configuration | 18 | Configuration |
19 | {%endif%} | 19 | {%endif%} |
diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html index 860d30d318..22c3d1a5ac 100755 --- a/bitbake/lib/toaster/toastergui/templates/recipes.html +++ b/bitbake/lib/toaster/toastergui/templates/recipes.html | |||
@@ -10,10 +10,10 @@ | |||
10 | <div class="span10"> | 10 | <div class="span10"> |
11 | <div class="page-header"> | 11 | <div class="page-header"> |
12 | <h1> | 12 | <h1> |
13 | {% if request.GET.filter or request.GET.search and objects.count > 0 %} | 13 | {% if request.GET.search and objects.paginator.count > 0 %} |
14 | {{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found | 14 | {{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found |
15 | {%elif objects.paginator.count == 0%} | 15 | {%elif request.GET.search and objects.paginator.count == 0%} |
16 | No Recipes | 16 | No recipes found |
17 | {%else%} | 17 | {%else%} |
18 | Recipes | 18 | Recipes |
19 | {%endif%} | 19 | {%endif%} |
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index d881811bd9..a2629dc1cb 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html | |||
@@ -8,10 +8,10 @@ | |||
8 | <div class="span10"> | 8 | <div class="span10"> |
9 | <div class="page-header"> | 9 | <div class="page-header"> |
10 | <h1> | 10 | <h1> |
11 | {% if request.GET.filter or request.GET.search and objects.count > 0 %} | 11 | {% if request.GET.filter or request.GET.search and objects.paginator.count > 0 %} |
12 | {{objects.paginator.count}} task{{objects.paginator.count|pluralize}} found | 12 | {{objects.paginator.count}} task{{objects.paginator.count|pluralize}} found |
13 | {%elif objects.paginator.count == 0%} | 13 | {%elif request.GET.filter or request.GET.search and objects.paginator.count == 0%} |
14 | No tasks | 14 | No tasks found |
15 | {%else%} | 15 | {%else%} |
16 | {{title}} | 16 | {{title}} |
17 | {%endif%} | 17 | {%endif%} |