From 8d08a73225ca665189fa922b87618638f86ca0f9 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Tue, 12 Jul 2016 15:54:58 -0700 Subject: bitbake: toaster-tests: package count/size shouldn't show for non-image builds If a build doesn't produce any image files, the package count and size shouldn't be shown. Also add some metadata to build dashboard elements so it is clear what they're for, and so they can be queried by the tests. (Bitbake rev: 3d5090af4475b1d0bb56911a8e30abf9097c1b3c) Signed-off-by: Elliot Smith Signed-off-by: bavery Signed-off-by: Richard Purdie --- .../toastergui/templates/builddashboard.html | 29 ++++++++++++++++------ 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'bitbake/lib/toaster/toastergui') diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index bc41e23622..07fc26c6dd 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html @@ -74,13 +74,28 @@ {% for target in targets %} {% if target.target.is_image %}
-

{{target.target.target}}

-
-
Packages included
-
{{target.npkg}}
-
Total package size
-
{{target.pkgsz|filtered_filesizeformat}}
-
+ {% if target.npkg > 0 %} +

+ + {{target.target.target}} + +

+
+
Packages included
+
+ + {{target.npkg}} + +
+
Total package size
+
+ {{target.pkgsz|filtered_filesizeformat}} +
+
+ {% else %} +

{{target.target.target}}

+ {% endif %} + {% if target.targetHasImages %}
-- cgit v1.2.3-54-g00ecf