From 57b8ccc67057f822470dd9de069ffd981f4f010a Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Thu, 13 Nov 2014 11:34:01 +0000 Subject: bitbake: toaster: add no results state to all layers page When you search for a layer and your search returns no results, we should show you an alert and a link to show back all layers, as we do in all other tables. (Bitbake rev: c67a5dd8026833e167c58a17643febee130dbb35) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/layers.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bitbake/lib') diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html index 2bca84b503..e9f910fa5a 100644 --- a/bitbake/lib/toaster/toastergui/templates/layers.html +++ b/bitbake/lib/toaster/toastergui/templates/layers.html @@ -23,6 +23,18 @@
+{% if objects.paginator.count == 0 %} +
+
+
+ {% if request.GET.search %}{% endif %} + + +
+
+
+ +{% else %} {% include "basetable_top_layers.html" %} {% for o in objects %} @@ -264,4 +276,6 @@ $(document).ready(function (){ {%endif%} +{%endif%} + {% endblock %} -- cgit v1.2.3-54-g00ecf