blob: bf13a66bd1c97a51fc4a94aa8d074c3f0566b01a [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001{% extends 'base.html' %}
2{% load static %}
3
4{% block extraheadcontent %}
5 <link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type='text/css'>
6 <link rel="stylesheet" href="{% static 'css/jquery-ui.structure.min.css' %}" type='text/css'>
7 <link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'>
8 <script src="{% static 'js/jquery-ui.min.js' %}">
9 </script>
10{% endblock %}
11
12{% block title %} All builds - Toaster {% endblock %}
13
14{% block pagecontent %}
15
16 <div class="row-fluid">
17 {% with mru=mru mrb_type=mrb_type %}
18 {% include 'mrb_section.html' %}
19 {% endwith %}
20
21 <h1 class="page-header top-air" data-role="page-title"></h1>
22
23 {% url 'builds' as xhr_table_url %}
24 {% include 'toastertable.html' %}
25 </div>
26
27 <script>
28 $(document).ready(function () {
29 var tableElt = $("#{{table_name}}");
30 var titleElt = $("[data-role='page-title']");
31
32 tableElt.on("table-done", function (e, total, tableParams) {
33 var title = "All builds";
34
35 if (tableParams.search || tableParams.filter) {
36 if (total === 0) {
37 title = "No builds found";
38 }
39 else if (total > 0) {
40 title = total + " build" + (total > 1 ? 's' : '') + " found";
41 }
42 }
43
44 titleElt.text(title);
45 });
46 });
47 </script>
48{% endblock %}