summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-07-12 15:54:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-19 08:56:52 +0100
commit8d08a73225ca665189fa922b87618638f86ca0f9 (patch)
treef125d392cdbfa15c39241649e1066a6ba8aa5482 /bitbake/lib/toaster/toastergui
parent8ccf8392aa07c14b99f946585f27aff8f2e425de (diff)
downloadpoky-8d08a73225ca665189fa922b87618638f86ca0f9.tar.gz
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 <elliot.smith@intel.com> Signed-off-by: bavery <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/builddashboard.html29
1 files changed, 22 insertions, 7 deletions
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 @@
74 {% for target in targets %} 74 {% for target in targets %}
75 {% if target.target.is_image %} 75 {% if target.target.is_image %}
76 <div class="well well-transparent dashboard-section" data-artifacts-for-target="{{target.target.pk}}"> 76 <div class="well well-transparent dashboard-section" data-artifacts-for-target="{{target.target.pk}}">
77 <h3><a href="{% url 'target' build.pk target.target.pk %}">{{target.target.target}}</a></h3> 77 {% if target.npkg > 0 %}
78 <dl class="dl-horizontal"> 78 <h3>
79 <dt>Packages included</dt> 79 <a href="{% url 'target' build.pk target.target.pk %}" data-link="target-packages">
80 <dd><a href="{% url 'target' build.pk target.target.pk %}">{{target.npkg}}</a></dd> 80 {{target.target.target}}
81 <dt>Total package size</dt> 81 </a>
82 <dd>{{target.pkgsz|filtered_filesizeformat}}</dd> 82 </h3>
83 </dl> 83 <dl class="dl-horizontal">
84 <dt>Packages included</dt>
85 <dd>
86 <a href="{% url 'target' build.pk target.target.pk %}">
87 <span data-value="target-package-count">{{target.npkg}}</span>
88 </a>
89 </dd>
90 <dt>Total package size</dt>
91 <dd>
92 <span data-value="target-package-size">{{target.pkgsz|filtered_filesizeformat}}</span>
93 </dd>
94 </dl>
95 {% else %}
96 <h3>{{target.target.target}}</h3>
97 {% endif %}
98
84 {% if target.targetHasImages %} 99 {% if target.targetHasImages %}
85 <dl class="dl-horizontal"> 100 <dl class="dl-horizontal">
86 <dt> 101 <dt>