mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 02:33:02 +01:00
Add the "today" and "yesterday" filters to the started_on and completed_on columns in the builds table. During this work, some minor adjustments were made to the behaviour of the builds table: * Amend filter action variable names so they're more succinct. * Retain order in which actions are added to a filter, as this ordering is used in the UI when displaying the filter actions. * Always show the table chrome, otherwise it's not possible to edit the columns shown until there are 10 or more results. * Because date range searches may return no results, make sure that the search bar and "show all results" link are visible when the query returns no results. [YOCTO #8738] (Bitbake rev: f17cfa009e58833e0e55884fa04de8abd522b6bc) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
49 lines
1.3 KiB
HTML
49 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
{% load static %}
|
|
|
|
{% block extraheadcontent %}
|
|
<link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type='text/css'>
|
|
<link rel="stylesheet" href="{% static 'css/jquery-ui.structure.min.css' %}" type='text/css'>
|
|
<link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'>
|
|
<script src="{% static 'js/jquery-ui.min.js' %}">
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block title %} All builds - Toaster {% endblock %}
|
|
|
|
{% block pagecontent %}
|
|
|
|
<div class="row-fluid">
|
|
{% with mru=mru mrb_type=mrb_type %}
|
|
{% include 'mrb_section.html' %}
|
|
{% endwith %}
|
|
|
|
<h1 class="page-header top-air" data-role="page-title"></h1>
|
|
|
|
{% url 'builds' as xhr_table_url %}
|
|
{% include 'toastertable.html' %}
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
var tableElt = $("#{{table_name}}");
|
|
var titleElt = $("[data-role='page-title']");
|
|
|
|
tableElt.on("table-done", function (e, total, tableParams) {
|
|
var title = "All builds";
|
|
|
|
if (tableParams.search || tableParams.filter) {
|
|
if (total === 0) {
|
|
title = "No builds found";
|
|
}
|
|
else if (total > 0) {
|
|
title = total + " build" + (total > 1 ? 's' : '') + " found";
|
|
}
|
|
}
|
|
|
|
titleElt.text(title);
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|