diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-01-15 13:00:53 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-15 16:30:00 +0000 |
commit | f8d383d87f0b9d4a4c9ae7b1a6c8ceebf90ef9b0 (patch) | |
tree | cda7dc3eb23a5b6a97241c965bbd9b0dcddc02eb /bitbake/lib/toaster/toastergui/templates/builds-toastertable.html | |
parent | b929889cdd4a36846f9569d89fabd9987e94b39e (diff) | |
download | poky-f8d383d87f0b9d4a4c9ae7b1a6c8ceebf90ef9b0.tar.gz |
bitbake: toastergui: implement date range filters for builds
Implement the completed_on and started_on filtering for
builds.
Also separate the name of a filter ("filter" in the querystring)
from its value ("filter_value" in the querystring). This enables
filtering to be defined in the querystring more intuitively,
and also makes it easier to add other types of filter (e.g.
by day).
[YOCTO #8738]
(Bitbake rev: d47c32e88c2d4a423f4d94d49759e557f425a539)
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/builds-toastertable.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/builds-toastertable.html | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html index f7604fd7a4..2e32edb100 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html +++ b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html | |||
@@ -1,4 +1,13 @@ | |||
1 | {% extends 'base.html' %} | 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 %} | ||
2 | 11 | ||
3 | {% block title %} All builds - Toaster {% endblock %} | 12 | {% block title %} All builds - Toaster {% endblock %} |
4 | 13 | ||
@@ -34,29 +43,6 @@ | |||
34 | 43 | ||
35 | titleElt.text(title); | 44 | titleElt.text(title); |
36 | }); | 45 | }); |
37 | |||
38 | /* {% if last_date_from and last_date_to %} | ||
39 | // TODO initialize the date range controls; | ||
40 | // this will need to be added via ToasterTable | ||
41 | date_init( | ||
42 | "started_on", | ||
43 | "{{last_date_from}}", | ||
44 | "{{last_date_to}}", | ||
45 | "{{dateMin_started_on}}", | ||
46 | "{{dateMax_started_on}}", | ||
47 | "{{daterange_selected}}" | ||
48 | ); | ||
49 | |||
50 | date_init( | ||
51 | "completed_on", | ||
52 | "{{last_date_from}}", | ||
53 | "{{last_date_to}}", | ||
54 | "{{dateMin_completed_on}}", | ||
55 | "{{dateMax_completed_on}}", | ||
56 | "{{daterange_selected}}" | ||
57 | ); | ||
58 | {% endif %} | ||
59 | */ | ||
60 | }); | 46 | }); |
61 | </script> | 47 | </script> |
62 | {% endblock %} | 48 | {% endblock %} |