bitbake: toaster: use cookies for count and sorting in templates tables
authorMarius Avram <marius.avram@intel.com>
Fri, 29 Aug 2014 12:51:01 +0000 (15:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Sep 2014 09:14:25 +0000 (10:14 +0100)
commitf3bc16d7b2a30a91e0663d8ab0a49afae288fe78
tree3e2aec5f66719d38ca054db59ba1d9906ef7e99a
parent9e86aee4ffd4ab33417524a4981ac75f4c985b4b
bitbake: toaster: use cookies for count and sorting in templates tables

Until now cookies were used to save which columns were shown and which
were hidden in toaster tables. The tables from the templates also have
functionalities like sorting the entries on a certain column and
limiting the number of entries displayed on a page. The later however
were not saved using cookies. This patch brings this new feature.

The cookies are not saved only in the front-end. They are saved both
in the frontend in case the user uses the inputs/buttons to change
a parameter and also in the backend in case the user specifies manually
using GET variables the value of the parameters.

When no GET parameters are given the views will redirect the url to one
containg the parameters saved as cookies. When no cookies exist, default
values will be used.

[YOCTO #6126]

(Bitbake rev: 880b58c845e3a501fa90d24e1bd89c87ca84b709)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
bitbake/lib/toaster/toastergui/templates/basetable_top.html
bitbake/lib/toaster/toastergui/views.py