From f4755edc8686cde97701b6e496149048be528739 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Thu, 20 Feb 2014 14:32:32 +0000 Subject: bitbake: toaster: Add no search results page Adding the no search results page to the built packages (bpackage.html), variables (configvars.html), recipes (recipes.html) and tasks (tasks.html) tables. The change copies the code from the build.html template into the other 4 templates. There is probably a smarter way of doing this, though. (Bitbake rev: 3feff77091b3926c10ca8f30890c9049633ccb66) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/bpackage.html | 13 +++++++++++++ bitbake/lib/toaster/toastergui/templates/configvars.html | 14 ++++++++++++++ bitbake/lib/toaster/toastergui/templates/recipes.html | 14 ++++++++++++++ bitbake/lib/toaster/toastergui/templates/tasks.html | 15 +++++++++++++++ 4 files changed, 56 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index 1eb1f8e..54f4bb4 100644 --- a/bitbake/lib/toaster/toastergui/templates/bpackage.html +++ b/bitbake/lib/toaster/toastergui/templates/bpackage.html @@ -20,6 +20,18 @@ +{% if objects.paginator.count == 0 %} +
+
+
+ + + +
+
+
+ +{% else %} {% include "basetable_top.html" %} {% for package in objects %} @@ -69,5 +81,6 @@ {% endfor %} {% include "basetable_bottom.html" %} +{% endif %} {% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index ecd5a0f..5c552c9 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html @@ -30,6 +30,19 @@
+ + {% if objects.paginator.count == 0 %} +
+
+
+ + + +
+
+
+ + {% else %} {% include "basetable_top.html" %} {% for variable in objects %} @@ -52,6 +65,7 @@ {% endfor %} {% include "basetable_bottom.html" %} +{% endif %}
diff --git a/bitbake/lib/toaster/toastergui/templates/recipes.html b/bitbake/lib/toaster/toastergui/templates/recipes.html index 724bcf5..da5ac99 100755 --- a/bitbake/lib/toaster/toastergui/templates/recipes.html +++ b/bitbake/lib/toaster/toastergui/templates/recipes.html @@ -19,6 +19,19 @@ {%endif%} + +{% if objects.paginator.count == 0 %} +
+
+
+ + + +
+
+
+ +{% else %} {% include "basetable_top.html" %} {% for recipe in objects %} @@ -80,5 +93,6 @@ {% endfor %} {% include "basetable_bottom.html" %} +{% endif %} {% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index ce75b75..f484867 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html @@ -17,6 +17,20 @@ {%endif%} + +{% if objects.paginator.count == 0 %} +
+
+
+ + + +
+
+
+ + +{% else %} {% include "basetable_top.html" %} {% for task in objects %} @@ -58,5 +72,6 @@ {% endfor %} {% include "basetable_bottom.html" %} +{% endif %} {% endblock %} -- cgit v1.1