summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2014-11-13 11:34:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-21 11:49:24 +0000
commit57b8ccc67057f822470dd9de069ffd981f4f010a (patch)
tree382c6880bd726a8f9aeb556e87da09054c8468cc /bitbake
parent2066b9b47f42fce927a5bf4a993527f954906759 (diff)
downloadpoky-57b8ccc67057f822470dd9de069ffd981f4f010a.tar.gz
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 <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layers.html14
1 files changed, 14 insertions, 0 deletions
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 @@
23 <div id="zone1alerts"> 23 <div id="zone1alerts">
24 </div> 24 </div>
25 25
26{% if objects.paginator.count == 0 %}
27 <div class="row-fluid">
28 <div class="alert">
29 <form class="no-results input-append" id="searchform">
30 <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %}
31 <button class="btn" type="submit" value="Search">Search</button>
32 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all layers</button>
33 </form>
34 </div>
35 </div>
36
37{% else %}
26 38
27{% include "basetable_top_layers.html" %} 39{% include "basetable_top_layers.html" %}
28 {% for o in objects %} 40 {% for o in objects %}
@@ -264,4 +276,6 @@ $(document).ready(function (){
264</script> 276</script>
265{%endif%} 277{%endif%}
266 278
279{%endif%}
280
267{% endblock %} 281{% endblock %}