summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2014-03-21 13:43:18 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-25 21:32:17 +0000
commit7fa51314bdac0afccf2ddd6f57581eec7d78d57f (patch)
tree9ae3cda5d0ba4c1202eb6e4f725d5f545ce39744 /bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
parent64ba1fa80518cab3fba8d4dd418ebd0e79ebb6d1 (diff)
downloadpoky-7fa51314bdac0afccf2ddd6f57581eec7d78d57f.tar.gz
bitbake: toaster: format packages with size = -1
Packages that have a size of -1 are virtual packages with limited information. Such packages should be suppressed from the package list page for an image. On dependency and reverse dependency lists of package, such packages should appear in muted rows, without links, and with help information. The formatting rules are encapsulated into projecttags filters when possible to minimize tests on size==-1 in the templates. Testing the relevant pages with an HTML5 validator found a stray end tag in package_detail_base which has been fixed in this commit. [YOCTO #5966] (Bitbake rev: 6cdd4067f766ef5680076c33a32b2dc5d622362c) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
index 0eb39d3f4f..8653ae0fe2 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
@@ -28,12 +28,19 @@
28 </thead> 28 </thead>
29 <tbody> 29 <tbody>
30 {% for reverse_dep in reverse_deps|dictsort:"name" %} 30 {% for reverse_dep in reverse_deps|dictsort:"name" %}
31 <tr> 31 <tr {{reverse_dep.size|format_vpackage_rowclass}} >
32 {% if reverse_dep.size != -1 %}
32 <td> 33 <td>
33 <a href="{% url 'package_included_detail' build.id target.id reverse_dep.dependent_id %}"> 34 <a href="{% url 'package_included_detail' build.id target.id reverse_dep.dependent_id %}">
34 {{reverse_dep.name}} 35 {{reverse_dep.name}}
35 </a> 36 </a>
36 </td> 37 </td>
38 {% else %}
39 <td>
40 {{reverse_dep.name|format_vpackage_namehelp}}
41 </td>
42 {% endif %}
43
37 <td>{{reverse_dep.version}}</td> 44 <td>{{reverse_dep.version}}</td>
38 <td>{{reverse_dep.size|filtered_filesizeformat}}</td> 45 <td>{{reverse_dep.size|filtered_filesizeformat}}</td>
39 </tr> 46 </tr>