summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html67
1 files changed, 38 insertions, 29 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
index 6d7e10bac5..1fe76a7a24 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
@@ -3,54 +3,63 @@
3{% load static %} 3{% load static %}
4 4
5{% block extraheadcontent %} 5{% block extraheadcontent %}
6 <link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type='text/css'> 6<link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type='text/css'>
7 <link rel="stylesheet" href="{% static 'css/jquery-ui.structure.min.css' %}" type='text/css'> 7<link rel="stylesheet" href="{% static 'css/jquery-ui.structure.min.css' %}" type='text/css'>
8 <link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'> 8<link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'>
9 <script src="{% static 'js/jquery-ui.min.js' %}"> 9<script src="{% static 'js/jquery-ui.min.js' %}">
10 </script> 10</script>
11{% endblock %} 11{% endblock %}
12 12
13{% block title %} {{title}} - {{project.name}} - Toaster {% endblock %} 13{% block title %} {{title}} - {{project.name}} - Toaster {% endblock %}
14 14
15{% block pagecontent %} 15{% block pagecontent %}
16<div class="row">
16 17
17 {% include "projecttopbar.html" %} 18 {% include "projecttopbar.html" %}
18 19
19 <div class="row-fluid"> 20 <div class="col-md-12">
20 {% with mru=mru mrb_type=mrb_type %} 21 {% with mru=mru mrb_type=mrb_type %}
21 {% include 'mrb_section.html' %} 22 {% include 'mrb_section.html' %}
22 {% endwith %} 23 {% endwith %}
23 24
24 <h2 class="page-header top-air" data-role="page-title"></h2> 25 <h2 class="top-air" data-role="page-title"></h2>
25 26
27 {% if not build_in_progress_none_completed %}
26 {% url 'projectbuilds' project.id as xhr_table_url %} 28 {% url 'projectbuilds' project.id as xhr_table_url %}
27 {% include 'toastertable.html' %} 29 {% include 'toastertable.html' %}
30 {% endif %}
28 </div> 31 </div>
29 32
30 <script> 33 <script>
31 $(document).ready(function () { 34 $(document).ready(function () {
32 // title 35 // title
33 var tableElt = $("#{{table_name}}"); 36 var tableElt = $("#{{table_name}}");
34 var titleElt = $("[data-role='page-title']"); 37 var titleElt = $("[data-role='page-title']");
35 38
36 tableElt.on("table-done", function (e, total, tableParams) { 39 tableElt.on("table-done", function (e, total, tableParams) {
37 var title = "All project builds"; 40 var title = "All project builds";
38 41
39 if (tableParams.search || tableParams.filter) { 42 if (tableParams.search || tableParams.filter) {
40 if (total === 0) { 43 if (total === 0) {
41 title = "No project builds found"; 44 title = "No project builds found";
42 } 45 }
43 else if (total > 0) { 46 else if (total > 0) {
44 title = total + " project build" + (total > 1 ? 's' : '') + " found"; 47 title = total + " project build" + (total > 1 ? 's' : '') + " found";
45 } 48 }
46 } 49 }
47 50
48 titleElt.text(title); 51 if (total === 0) {
49 }); 52 titleElt.hide();
53 } else {
54 titleElt.show();
55 titleElt.text(title);
56 }
57 });
50 58
51 // highlight builds tab 59 // highlight builds tab
52 $("#topbar-builds-tab").addClass("active") 60 $("#topbar-builds-tab").addClass("active")
53 }); 61 });
54 </script> 62 </script>
55 63
64</div>
56{% endblock %} 65{% endblock %}