From f8d383d87f0b9d4a4c9ae7b1a6c8ceebf90ef9b0 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Fri, 15 Jan 2016 13:00:53 +0200 Subject: 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 Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- .../toastergui/templates/builds-toastertable.html | 32 ++++++---------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/builds-toastertable.html') 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 @@ {% extends 'base.html' %} +{% load static %} + +{% block extraheadcontent %} + + + + +{% endblock %} {% block title %} All builds - Toaster {% endblock %} @@ -34,29 +43,6 @@ titleElt.text(title); }); - - /* {% if last_date_from and last_date_to %} - // TODO initialize the date range controls; - // this will need to be added via ToasterTable - date_init( - "started_on", - "{{last_date_from}}", - "{{last_date_to}}", - "{{dateMin_started_on}}", - "{{dateMax_started_on}}", - "{{daterange_selected}}" - ); - - date_init( - "completed_on", - "{{last_date_from}}", - "{{last_date_to}}", - "{{dateMin_completed_on}}", - "{{dateMax_completed_on}}", - "{{daterange_selected}}" - ); - {% endif %} - */ }); {% endblock %} -- cgit v1.2.3-54-g00ecf