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/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index 1eb1f8e5c3..54f4bb4d5d 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 ecd5a0f3d8..5c552c9d82 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 724bcf5879..da5ac99bd5 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 ce75b75c94..f484867958 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.2.3-54-g00ecf