mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2066b9b47f
commit
57b8ccc670
@@ -23,6 +23,18 @@
|
||||
<div id="zone1alerts">
|
||||
</div>
|
||||
|
||||
{% if objects.paginator.count == 0 %}
|
||||
<div class="row-fluid">
|
||||
<div class="alert">
|
||||
<form class="no-results input-append" id="searchform">
|
||||
<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 %}
|
||||
<button class="btn" type="submit" value="Search">Search</button>
|
||||
<button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all layers</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
{% include "basetable_top_layers.html" %}
|
||||
{% for o in objects %}
|
||||
@@ -264,4 +276,6 @@ $(document).ready(function (){
|
||||
</script>
|
||||
{%endif%}
|
||||
|
||||
{%endif%}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user