diff options
author | David Reyna <David.Reyna@windriver.com> | 2015-04-15 20:37:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-17 11:53:57 +0100 |
commit | abc7f15960b0ae2c13e6ca34b2452f7baa353370 (patch) | |
tree | 6098d2754054690ad757338b97a649e46d94a1c8 | |
parent | db254cb513b1ad5f67f42321e01a42ec47572243 (diff) | |
download | openembedded-core-contrib-abc7f15960b0ae2c13e6ca34b2452f7baa353370.tar.gz |
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>
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/projectbuilds.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html index 07595f2376c..18b24955d09 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html @@ -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 %} |