summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/builds-toastertable.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html
new file mode 100644
index 0000000000..419d2b52f4
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html
@@ -0,0 +1,62 @@
1{% extends 'base.html' %}
2
3{% block title %} All builds - Toaster {% endblock %}
4
5{% block pagecontent %}
6 <div class="page-header top-air">
7 <h1 data-role="page-title"></h1>
8 </div>
9
10 <div class="row-fluid">
11 {# TODO need to pass this data to context #}
12 {#% include 'mrb_section.html' %#}
13
14 {% url 'builds' as xhr_table_url %}
15 {% include 'toastertable.html' %}
16 </div>
17
18 <script>
19 $(document).ready(function () {
20 var tableElt = $("#{{table_name}}");
21 var titleElt = $("[data-role='page-title']");
22
23 tableElt.on("table-done", function (e, total, tableParams) {
24 var title = "All builds";
25
26 if (tableParams.search || tableParams.filter) {
27 if (total === 0) {
28 title = "No builds found";
29 }
30 else if (total > 0) {
31 title = total + " build" + (total > 1 ? 's' : '') + " found";
32 }
33 }
34
35 titleElt.text(title);
36 });
37
38 /* {% if last_date_from and last_date_to %}
39 // TODO initialize the date range controls;
40 // this will need to be added via ToasterTable
41 date_init(
42 "started_on",
43 "{{last_date_from}}",
44 "{{last_date_to}}",
45 "{{dateMin_started_on}}",
46 "{{dateMax_started_on}}",
47 "{{daterange_selected}}"
48 );
49
50 date_init(
51 "completed_on",
52 "{{last_date_from}}",
53 "{{last_date_to}}",
54 "{{dateMin_completed_on}}",
55 "{{dateMax_completed_on}}",
56 "{{daterange_selected}}"
57 );
58 {% endif %}
59 */
60 });
61 </script>
62{% endblock %}