summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/projects.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projects.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projects.html60
1 files changed, 48 insertions, 12 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projects.html b/bitbake/lib/toaster/toastergui/templates/projects.html
index 0396e25a3a..88d5bd32df 100644
--- a/bitbake/lib/toaster/toastergui/templates/projects.html
+++ b/bitbake/lib/toaster/toastergui/templates/projects.html
@@ -12,25 +12,61 @@
12 12
13 <div class="page-header top-air"> 13 <div class="page-header top-air">
14 <h1> 14 <h1>
15 All projects 15 {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
16 {{objects.paginator.count}} project{{objects.paginator.count|pluralize}} found
17 {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
18 No projects found
19 {%else%}
20 All projects
21 {%endif%}
16 </h1> 22 </h1>
17 </div> 23 </div>
18 24
19{% include "basetable_top_projectbuilds.html" %} 25 {% if objects.paginator.count == 0 %}
26 <div class="row-fluid">
27 <div class="alert">
28 <form class="no-results input-append" id="searchform">
29 <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 %}
30 <button class="btn" type="submit" value="Search">Search</button>
31 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all projects</button>
32 </form>
33 </div>
34 </div>
35
36 {% else %} {# We have builds to display #}
37 {% include "basetable_top_projectbuilds.html" %}
20 {% for o in objects %} 38 {% for o in objects %}
21 <tr class="data"> 39 <tr class="data">
22 <td><a href="{% url 'project' o.id %}">{{o.name}}</a></td> 40 <td><a href="{% url 'project' o.id %}">{{o.name}}</a></td>
23 <td><a href="{% url 'project' o.id %}">{{o.release.name}}</a></td> 41 <td><a href="{% url 'project' o.id %}#project-details">{{o.release.name}}</a></td>
24 <td>{{o.get_current_machine_name}}</td> 42 <td><a href="{% url 'project' o.id %}#machine-distro">{{o.get_current_machine_name}}</a></td>
25 <td>{{o.get_number_of_builds}}</td> 43 {% if o.get_number_of_builds == 0 %}
26 <td class="loutcome">{{o.get_last_outcome}}</td> 44 <td class="muted">{{o.get_number_of_builds}}</td>
27 <td class="ltarget">{{o.get_last_target}}</td> 45 <td class="updated"></td>
28 <td class="lerrors">{{o.get_last_errors}}</td> 46 <td class="loutcome"></td>
29 <td class="lwarnings">{{o.get_last_warnings}}</td> 47 <td class="ltarget"></td>
30 <td class="limagefiles">{{o.get_last_imgfiles}}</td> 48 <td class="lerrors"></td>
31 <td class="updated">{{o.updated|date:"d/m/y H:i"}}</td> 49 <td class="lwarnings"></td>
50 <td class="limagefiles"></td>
51 {% else %}
52 <td><a href="{% url 'projectbuilds' o.id %}">{{o.get_number_of_builds}}</a></td>
53 <td class="updated"><a href="{% url "builddashboard" o.get_last_build_id %}">{{o.updated|date:"d/m/y H:i"}}</a></td>
54 <td class="loutcome"><a href="{% url "builddashboard" o.get_last_build_id %}">{%if o.get_last_outcome == build_SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif o.get_last_outcome == build_FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a></td>
55 <td class="ltarget"><a href="{% url "builddashboard" o.get_last_build_id %}">{{o.get_last_target}} </a></td>
56 <td class="lerrors">{% if o.get_last_errors %}<a class="errors_no error" href="{% url "builddashboard" o.get_last_build_id %}#errors">{{o.get_last_errors}} error{{o.get_last_errors|pluralize}}</a>{%endif%}</td>
57 <td class="lwarnings">{% if o.get_last_warnings %}<a class="warnings_no warning" href="{% url "builddashboard" o.get_last_build_id %}#warnings">{{o.get_last_warnings}} warning{{o.get_last_warnings|pluralize}}</a>{%endif%}</td>
58 <td class="limagefiles">
59 {% if o.get_last_outcome == build_SUCCEEDED %}
60 <a href="{%url "builddashboard" o.get_last_build_id %}#images">{{fstypes|get_dict_value:o.id}}</a>
61 {% endif %}
62 </td>
63
64 {% endif %}
32 </tr> 65 </tr>
33 {% endfor %} 66 {% endfor %}
34{% include "basetable_bottom.html" %} 67 {% include "basetable_bottom.html" %}
68 {% endif %} {# empty #}
35 69
36{% endblock %} 70{% endblock %}
71
72