summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/targets.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-02-13 13:08:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-17 14:38:32 +0000
commit88f431cddfc80408a7fce3609ea5a1aa97cf0af4 (patch)
tree7ee683d7d2eadfa635bac705bf7eed8fc894c2ed /bitbake/lib/toaster/toastergui/templates/targets.html
parent208f40dc0542e39b5664ffd957213020e05220b2 (diff)
downloadpoky-88f431cddfc80408a7fce3609ea5a1aa97cf0af4.tar.gz
bitbake: toasterui: empty state for pages
Toaster needs to properly prompt the user and display actionable help texts when the database is void of meaningful information. This patch brings in the "empty" states for pages. [YOCTO #6755] (Bitbake rev: 7cfe279bf77b59d5cbd20d8a93e1d33279bebc20) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/targets.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/targets.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/targets.html b/bitbake/lib/toaster/toastergui/templates/targets.html
index 6cd9391323..234159a687 100644
--- a/bitbake/lib/toaster/toastergui/templates/targets.html
+++ b/bitbake/lib/toaster/toastergui/templates/targets.html
@@ -25,6 +25,7 @@
25 </div> 25 </div>
26 26
27{% if objects.paginator.count == 0 %} 27{% if objects.paginator.count == 0 %}
28 {% if request.GET.filter or request.GET.search %}
28 <div class="row-fluid"> 29 <div class="row-fluid">
29 <div class="alert"> 30 <div class="alert">
30 <form class="no-results input-append" id="searchform"> 31 <form class="no-results input-append" id="searchform">
@@ -34,6 +35,17 @@
34 </form> 35 </form>
35 </div> 36 </div>
36 </div> 37 </div>
38 {% else %}
39 <div class="alert alert-info">
40 <p class="lead">
41 Toaster has not target information. To generate target information you can:<br/>
42 <ul class="lead">
43 <li style="margin-top: 10px"> <a href="https://wiki.yoctoproject.org/wiki/Setting_up_a_hosted_managed_mode_for_Toaster#LayerSources">Configure a layer source</a></li>
44 <li style="margin-top: 10px"> <a href="{% url 'importlayer' %}">Import a layer</a></li>
45 </ul>
46 </p>
47 </div>
48 {% endif %}
37 49
38{% else %} 50{% else %}
39 51