bitbake: toaster: date range filter for project builds page
Port date range filter initialization code to the project builds page. [YOCTO #7578] (Bitbake rev: 294ea99263385525a1434bc6df690b653ee1f81b) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
db254cb513
commit
abc7f15960
|
@ -6,8 +6,24 @@
|
|||
<li>Project builds</li>
|
||||
{% endblock %}
|
||||
|
||||
{% 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>
|
||||
<script src="/static/js/filtersnippet.js"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block projectinfomain %}
|
||||
|
||||
<script>
|
||||
// initialize the date range controls
|
||||
$(document).ready(function () {
|
||||
date_init('created','{{last_date_from}}','{{last_date_to}}','{{dateMin_created}}','{{dateMax_created}}','{{daterange_selected}}');
|
||||
date_init('updated','{{last_date_from}}','{{last_date_to}}','{{dateMin_updated}}','{{dateMax_updated}}','{{daterange_selected}}');
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
{% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
|
||||
|
|
Loading…
Reference in New Issue