summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/bpackage.html
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2014-03-25 18:53:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-28 13:44:52 +0000
commit877dcd709e4cd54847e756e7a8dc1de6fa926967 (patch)
treea6fc0240a28f80ebf5960baf00588c6079c7ea0b /bitbake/lib/toaster/toastergui/templates/bpackage.html
parent14a84434a1c76f5d0bef7a75f2c7529a9ff166cf (diff)
downloadpoky-877dcd709e4cd54847e756e7a8dc1de6fa926967.tar.gz
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/bpackage.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/bpackage.html34
1 files changed, 27 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html
index 77f789484c..22609e227a 100644
--- a/bitbake/lib/toaster/toastergui/templates/bpackage.html
+++ b/bitbake/lib/toaster/toastergui/templates/bpackage.html
@@ -12,8 +12,27 @@
12 12
13{% block buildinfomain %} 13{% block buildinfomain %}
14<div class="span10"> 14<div class="span10">
15
16{% if not request.GET.filter and not request.GET.search and not objects.paginator.count %}
17
18<!-- Empty - no data in database -->
15<div class="page-header"> 19<div class="page-header">
16<h1> 20 <div class="page-header">
21 <h1>
22 Packages
23 </h1>
24 </div>
25 <div class="alert alert-info lead">
26 <STRONG>No packages were built.</STRONG> How did this happen? Well, BitBake reuses as much stuff as possible.
27 If all of the packages needed were already built and available in your build infrastructure, Bitbake
28 will not rebuild any of them. This might be slightly confusing, but it does make everything faster.
29 </div>
30</div>
31
32{% else %}
33
34<div class="page-header">
35 <h1>
17 {% if request.GET.search and objects.paginator.count > 0 %} 36 {% if request.GET.search and objects.paginator.count > 0 %}
18 {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found 37 {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found
19 {%elif request.GET.search and objects.paginator.count == 0%} 38 {%elif request.GET.search and objects.paginator.count == 0%}
@@ -21,10 +40,10 @@
21 {%else%} 40 {%else%}
22 Packages 41 Packages
23 {%endif%} 42 {%endif%}
24 </h1> 43 </h1>
25</div> 44</div>
26 45
27{% if objects.paginator.count == 0 %} 46 {% if objects.paginator.count == 0 %}
28 <div class="row-fluid"> 47 <div class="row-fluid">
29 <div class="alert"> 48 <div class="alert">
30 <form class="no-results input-append" id="searchform"> 49 <form class="no-results input-append" id="searchform">
@@ -35,8 +54,8 @@
35 </div> 54 </div>
36 </div> 55 </div>
37 56
38{% else %} 57 {% else %}
39{% include "basetable_top.html" %} 58 {% include "basetable_top.html" %}
40 59
41 {% for package in objects %} 60 {% for package in objects %}
42 61
@@ -84,7 +103,8 @@
84 </tr> 103 </tr>
85 {% endfor %} 104 {% endfor %}
86 105
87{% include "basetable_bottom.html" %} 106 {% include "basetable_bottom.html" %}
88{% endif %} 107 {% endif %} {# objects.paginator.count #}
108{% endif %} {# Empty #}
89</div> 109</div>
90{% endblock %} 110{% endblock %}