summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/layers.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/layers.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layers.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html
index c35a299333..24d31c770e 100644
--- a/bitbake/lib/toaster/toastergui/templates/layers.html
+++ b/bitbake/lib/toaster/toastergui/templates/layers.html
@@ -9,9 +9,9 @@
9{% block projectinfomain %} 9{% block projectinfomain %}
10 <div class="page-header"> 10 <div class="page-header">
11 <h1> 11 <h1>
12 {% if request.GET.filter and total_count > 0 or request.GET.search and total_count > 0 %} 12 {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
13 {{total_count}} layer{{total_count|pluralize}} found 13 {{objects.paginator.count}} layer{{objects.paginator.count|pluralize}} found
14 {% elif request.GET.filter and total_count == 0 or request.GET.search and total_count == 0 %} 14 {% elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
15 No layers found 15 No layers found
16 {%else%} 16 {%else%}
17 All compatible layers 17 All compatible layers
@@ -24,6 +24,7 @@
24 </div> 24 </div>
25 25
26{% if objects.paginator.count == 0 %} 26{% if objects.paginator.count == 0 %}
27 {% if request.GET.filter or request.GET.search %}
27 <div class="row-fluid"> 28 <div class="row-fluid">
28 <div class="alert"> 29 <div class="alert">
29 <form class="no-results input-append" id="searchform"> 30 <form class="no-results input-append" id="searchform">
@@ -33,6 +34,15 @@
33 </form> 34 </form>
34 </div> 35 </div>
35 </div> 36 </div>
37 {% else %}
38 <div class="alert alert-info lead">
39 <p>Toaster has no layer information. To generate layer information you can:</p>
40 <ul>
41 <li><a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a></li>
42 <li><a href="{% url 'importlayer' %}">Import a layer</a></li>
43 </ul>
44 </div>
45 {% endif %}
36 46
37{% else %} 47{% else %}
38 48