summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-01-15 13:00:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-15 16:30:00 +0000
commiteaae82a19acaf786b866043ea80107f28e8206b2 (patch)
tree4e5edd8d7f044755ae76ae67bd1d473431448a3c /bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
parent33b011c1589519db8176c9f5a4abb540698902e6 (diff)
downloadpoky-eaae82a19acaf786b866043ea80107f28e8206b2.tar.gz
bitbake: toastergui: convert project builds page to ToasterTable
Use the all builds ToasterTable as the basis for the project builds ToasterTable. [YOCTO #8738] (Bitbake rev: 87bcfb740dd2d9944e35a2a1f71cbf8ff3b266e9) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
new file mode 100644
index 0000000000..6d7e10bac5
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
@@ -0,0 +1,56 @@
1{% extends 'base.html' %}
2
3{% load static %}
4
5{% block extraheadcontent %}
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'>
8 <link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'>
9 <script src="{% static 'js/jquery-ui.min.js' %}">
10 </script>
11{% endblock %}
12
13{% block title %} {{title}} - {{project.name}} - Toaster {% endblock %}
14
15{% block pagecontent %}
16
17 {% include "projecttopbar.html" %}
18
19 <div class="row-fluid">
20 {% with mru=mru mrb_type=mrb_type %}
21 {% include 'mrb_section.html' %}
22 {% endwith %}
23
24 <h2 class="page-header top-air" data-role="page-title"></h2>
25
26 {% url 'projectbuilds' project.id as xhr_table_url %}
27 {% include 'toastertable.html' %}
28 </div>
29
30 <script>
31 $(document).ready(function () {
32 // title
33 var tableElt = $("#{{table_name}}");
34 var titleElt = $("[data-role='page-title']");
35
36 tableElt.on("table-done", function (e, total, tableParams) {
37 var title = "All project builds";
38
39 if (tableParams.search || tableParams.filter) {
40 if (total === 0) {
41 title = "No project builds found";
42 }
43 else if (total > 0) {
44 title = total + " project build" + (total > 1 ? 's' : '') + " found";
45 }
46 }
47
48 titleElt.text(title);
49 });
50
51 // highlight builds tab
52 $("#topbar-builds-tab").addClass("active")
53 });
54 </script>
55
56{% endblock %}