summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2015-02-24 16:14:41 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-09 14:33:47 +0000
commitec8e07f8cf4d04d9e7a4a5e66103d28ba4a81ed4 (patch)
treeaf6a858a0a8f877f99f5d760836d5dc1f0e4d1ed /bitbake/lib/toaster/toastergui/urls.py
parente248a503ba84658dea086e65e9cde8b845b9c0ed (diff)
downloadpoky-ec8e07f8cf4d04d9e7a4a5e66103d28ba4a81ed4.tar.gz
bitbake: toaster: add sort, search, paging to recipe package page
When selecting the packages tab on a recipe detail page, the page now includes: column sort on package name and size columns, search on the package name, and pagination. Column sort is added by splitting the recipe view/html for a recipe's package list into a new url path, view name and template, so that the sorting routine, views.reload_params(), interfaces similar to other views. Search, sorting, and pagination are implemented for this detail page using three new templates. templates/detail_pagination_bottom.html templates/detail_search_header.html templates/detail_sorted_header.html views.recipe() is optimized since the recipe's package list is no longer needed by the recipe template, only the recipe's package count is required for the first page. The recipe view and template also changes to support tabbing to the right context on the recipe detail page from the recipe-package page. [YOCTO #6154] (Bitbake rev: 6cb9e853d05c2c71467af22ef459ffbe6f41de36) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r--bitbake/lib/toaster/toastergui/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py
index 1c83090f58..fc03f19a7f 100644
--- a/bitbake/lib/toaster/toastergui/urls.py
+++ b/bitbake/lib/toaster/toastergui/urls.py
@@ -32,7 +32,9 @@ urlpatterns = patterns('toastergui.views',
32 url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', 'task', name='task'), 32 url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', 'task', name='task'),
33 33
34 url(r'^build/(?P<build_id>\d+)/recipes/$', 'recipes', name='recipes'), 34 url(r'^build/(?P<build_id>\d+)/recipes/$', 'recipes', name='recipes'),
35 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)/active_tab/(?P<active_tab>\d{1})$', 'recipe', name='recipe'),
35 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', 'recipe', name='recipe'), 36 url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', 'recipe', name='recipe'),
37 url(r'^build/(?P<build_id>\d+)/recipe_packages/(?P<recipe_id>\d+)$', 'recipe_packages', name='recipe_packages'),
36 38
37 url(r'^build/(?P<build_id>\d+)/packages/$', 'bpackage', name='packages'), 39 url(r'^build/(?P<build_id>\d+)/packages/$', 'bpackage', name='packages'),
38 url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', 'package_built_detail', 40 url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', 'package_built_detail',