diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html | 56 |
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 %} | ||