mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
bitbake: toaster: add support for empty states in pages
Add support for empty states in the top build page, the all packages page, and the all tasks page. [YOCTO #4865] (Bitbake rev: eaff7b50d7102c97b75df185b9ef917970319d59) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
14a84434a1
commit
877dcd709e
@@ -12,8 +12,27 @@
|
||||
|
||||
{% block buildinfomain %}
|
||||
<div class="span10">
|
||||
|
||||
{% if not request.GET.filter and not request.GET.search and not objects.paginator.count %}
|
||||
|
||||
<!-- Empty - no data in database -->
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
Packages
|
||||
</h1>
|
||||
</div>
|
||||
<div class="alert alert-info lead">
|
||||
<STRONG>No packages were built.</STRONG> How did this happen? Well, BitBake reuses as much stuff as possible.
|
||||
If all of the packages needed were already built and available in your build infrastructure, Bitbake
|
||||
will not rebuild any of them. This might be slightly confusing, but it does make everything faster.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
{% if request.GET.search and objects.paginator.count > 0 %}
|
||||
{{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found
|
||||
{%elif request.GET.search and objects.paginator.count == 0%}
|
||||
@@ -21,10 +40,10 @@
|
||||
{%else%}
|
||||
Packages
|
||||
{%endif%}
|
||||
</h1>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{% if objects.paginator.count == 0 %}
|
||||
{% if objects.paginator.count == 0 %}
|
||||
<div class="row-fluid">
|
||||
<div class="alert">
|
||||
<form class="no-results input-append" id="searchform">
|
||||
@@ -35,8 +54,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
{% include "basetable_top.html" %}
|
||||
{% else %}
|
||||
{% include "basetable_top.html" %}
|
||||
|
||||
{% for package in objects %}
|
||||
|
||||
@@ -84,7 +103,8 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{% include "basetable_bottom.html" %}
|
||||
{% endif %}
|
||||
{% include "basetable_bottom.html" %}
|
||||
{% endif %} {# objects.paginator.count #}
|
||||
{% endif %} {# Empty #}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user