]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: add build dashboard buttons to edit/create custom images
authorElliot Smith <elliot.smith@intel.com>
Tue, 19 Apr 2016 16:28:45 +0000 (17:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Apr 2016 20:10:58 +0000 (21:10 +0100)
commit4c49ffd28e41c4597bdac34d5e54c125571a4b95
tree586a0510eec3ca7dd5f403d3cd1a5a49a553fcdf
parentcea34880ad3847bd0e24c9b650eb816e1757cf2b
toaster: add build dashboard buttons to edit/create custom images

When a build is viewed in the dashboard, enable users to edit
a custom image which was built during that build, and/or create
a new custom image based on one of the image recipes built during
the build.

Add methods to the Build model to enable querying for the
set of image recipes built during a build.

Add buttons to the dashboard, with the "Edit custom image"
button opening a basic modal for now. The "New custom image"
button opens the existing new custom image modal, but is modified
to show a list of images available as a base for a new custom image.

Add a new function to the new custom image modal's script which
enables multiple potential custom images to be shown as radio
buttons in the dialog (if there is more than 1). Modify existing
code to use this new function.

Add a template filter which allows the queryset of recipes for
a build to be available to client-side scripts, and from there
be used to populate the new custom image modal.

[YOCTO #9123]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/orm/models.py
lib/toaster/toastergui/static/js/layerBtn.js
lib/toaster/toastergui/static/js/newcustomimage_modal.js
lib/toaster/toastergui/static/js/recipedetails.js
lib/toaster/toastergui/templates/basebuildpage.html
lib/toaster/toastergui/templates/editcustomimage_modal.html [new file with mode: 0644]
lib/toaster/toastergui/templates/newcustomimage_modal.html
lib/toaster/toastergui/templatetags/queryset_to_list_filter.py [new file with mode: 0644]
lib/toaster/toastergui/views.py