1{% 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">
17  <div class="col-md-12">
18    {% with mru=mru mrb_type=mrb_type %}
19      {% include 'mrb_section.html' %}
20    {% endwith %}
21
22    <div class="page-header">
23      <h1 class="top-air" data-role="page-title"></h1>
24    </div>
25
26    {% url 'builds' as xhr_table_url %}
27    {% include 'toastertable.html' %}
28  </div>
29</div>
30
31  <script>
32    $(document).ready(function () {
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 builds";
38
39        if (tableParams.search || tableParams.filter) {
40          if (total === 0) {
41            title = "No builds found";
42          }
43          else if (total > 0) {
44            title = total + " build" + (total > 1 ? 's' : '') + " found";
45          }
46        }
47
48        titleElt.text(title);
49      });
50    });
51  </script>
52{% endblock %}
53