blob: 0afe0a31151d71353fb36d7e98350e52aa0de6cf [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
Patrick Williamsc0f7c042017-02-23 20:41:17 -060016<div class="row">
17 <div class="col-md-12">
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018 {% with mru=mru mrb_type=mrb_type %}
19 {% include 'mrb_section.html' %}
20 {% endwith %}
21
Patrick Williamsc0f7c042017-02-23 20:41:17 -060022 <div class="page-header">
23 <h1 class="top-air" data-role="page-title"></h1>
24 </div>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025
26 {% url 'builds' as xhr_table_url %}
27 {% include 'toastertable.html' %}
28 </div>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060029</div>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050030
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 %}