From: Belen Barros Pena Date: Thu, 20 Feb 2014 14:32:32 +0000 (+0000) Subject: bitbake: toaster: Add no search results page X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4755edc8686cde97701b6e496149048be528739;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index 1eb1f8e5c3c..54f4bb4d5d5 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 ecd5a0f3d80..5c552c9d820 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 724bcf58790..da5ac99bd5f 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 ce75b75c94b..f484867958d 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 %}