diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
3 files changed, 58 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html index 1f45be462d..b143b78833 100644 --- a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +++ b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html | |||
@@ -1,4 +1,5 @@ | |||
1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
2 | |||
2 | {% load projecttags %} | 3 | {% load projecttags %} |
3 | {% load humanize %} | 4 | {% load humanize %} |
4 | 5 | ||
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 52b3f1a7d3..2f4820c3e7 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html | |||
@@ -6,7 +6,7 @@ | |||
6 | {%if mru and mru.count > 0%} | 6 | {%if mru and mru.count > 0%} |
7 | 7 | ||
8 | {%if mrb_type == 'project' %} | 8 | {%if mrb_type == 'project' %} |
9 | <h2> | 9 | <h2 class="page-header"> |
10 | Latest project builds | 10 | Latest project builds |
11 | 11 | ||
12 | {% if project.is_default %} | 12 | {% if project.is_default %} |
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 %} | ||