From d6e7e4ad43471fdaa1b6184bd13c91069478839e Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Wed, 4 Nov 2015 15:17:45 +0000 Subject: bitbake: toaster: tables Add table for Packages and update SelectPackagesTable Create a Packages table for use as the image details page. Change the SelectPackagesTable table to inherit from the Packages table. Remove the need for a separate view by adding the additional template context items to the Table's page context. (Bitbake rev: 336b1d8369d9e86ece78b63cb0e140e653216011) Signed-off-by: Michael Wood Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/urls.py') diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 2164c4c8f7..969a29b228 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py @@ -109,13 +109,10 @@ urlpatterns = patterns('toastergui.views', tables.NewCustomImagesTable.as_view(template_name="newcustomimage.html"), name="newcustomimage"), - url(r'^project/(?P\d+)/layers/$', tables.LayersTable.as_view(template_name="generic-toastertable-page.html"), name="projectlayers"), - - url(r'^project/(?P\d+)/layer/(?P\d+)$', 'layerdetails', name='layerdetails'), @@ -133,17 +130,20 @@ urlpatterns = patterns('toastergui.views', url(r'^project/(?P\d+)/customrecipe/(?P\d+)/selectpackages/$', - tables.SelectPackagesTable.as_view(template_name="generic-toastertable-page.html"), name="recipeselectpackages"), + tables.SelectPackagesTable.as_view(), name="recipeselectpackages"), url(r'^project/(?P\d+)/customrecipe/(?P\d+)$', - 'customrecipe', + tables.SelectPackagesTable.as_view(template_name="customrecipe.html"), name="customrecipe"), url(r'^project/(?P\d+)/customrecipe/(?P\d+)/download$', 'customrecipe_download', name="customrecipedownload"), + url(r'^project/(?P\d+)/recipe/(?P\d+)$', + tables.PackagesTable.as_view(template_name="recipedetails.html"), + name="recipedetails"), # typeahead api end points url(r'^xhr_typeahead/(?P\d+)/layers$', -- cgit v1.2.3-54-g00ecf