From 07a58a8944315f87107b29c3d66bc3a7d57c0249 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Tue, 12 Jul 2016 15:54:51 -0700 Subject: bitbake: toaster: only show "New custom image" button for builds with image targets Add a has_image_targets() method to Build, and use that to hide the "New custom image" button on the build dashboard if a build has no targets which build images. [YOCTO #9514] (Bitbake rev: 3c4b053e44ea512ef2ced67289a7b0161db6ce9b) Signed-off-by: Elliot Smith Signed-off-by: bavery Signed-off-by: Richard Purdie --- .../toastergui/templates/basebuildpage.html | 42 +++++++++++----------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/basebuildpage.html') diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index e9927ebbaa..8d7c562640 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -117,30 +117,32 @@ {% endwith %} - - {% include 'newcustomimage_modal.html' %} - + + {% endif %} -- cgit v1.2.3-54-g00ecf