diff options
| author | Dave Lerner <dave.lerner@windriver.com> | 2014-03-21 13:43:18 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-25 21:32:17 +0000 |
| commit | 7fa51314bdac0afccf2ddd6f57581eec7d78d57f (patch) | |
| tree | 9ae3cda5d0ba4c1202eb6e4f725d5f545ce39744 /bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html | |
| parent | 64ba1fa80518cab3fba8d4dd418ebd0e79ebb6d1 (diff) | |
| download | poky-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_dependencies.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html index 71043ec1ac..c76774ac9c 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html | |||
| @@ -23,12 +23,19 @@ | |||
| 23 | </thead> | 23 | </thead> |
| 24 | <tbody> | 24 | <tbody> |
| 25 | {% for runtime_dep in runtime_deps %} | 25 | {% for runtime_dep in runtime_deps %} |
| 26 | <tr> | 26 | <tr {{runtime_dep.size|format_vpackage_rowclass}} > |
| 27 | {% if runtime_dep.size != -1 %} | ||
| 27 | <td> | 28 | <td> |
| 28 | <a href="{% url 'package_included_detail' build.id target.id runtime_dep.depends_on_id %}"> | 29 | <a href="{% url 'package_included_detail' build.id target.id runtime_dep.depends_on_id %}"> |
| 29 | {{runtime_dep.name}} | 30 | {{runtime_dep.name}} |
| 30 | </a> | 31 | </a> |
| 31 | </td> | 32 | </td> |
| 33 | {% else %} | ||
| 34 | <td> | ||
| 35 | {{runtime_dep.name|format_vpackage_namehelp}} | ||
| 36 | </td> | ||
| 37 | {% endif %} | ||
| 38 | |||
| 32 | <td>{{runtime_dep.version}}</td> | 39 | <td>{{runtime_dep.version}}</td> |
| 33 | <td>{{runtime_dep.size|filtered_filesizeformat}}</td> | 40 | <td>{{runtime_dep.size|filtered_filesizeformat}}</td> |
| 34 | </tr> | 41 | </tr> |
| @@ -58,12 +65,18 @@ | |||
| 58 | <tbody> | 65 | <tbody> |
| 59 | {% for other_dep in other_deps %} | 66 | {% for other_dep in other_deps %} |
| 60 | {% if other_dep.installed %} | 67 | {% if other_dep.installed %} |
| 61 | <tr> | 68 | <tr {{other_dep.size|format_vpackage_rowclass}}> |
| 69 | {% if other_dep.size != -1 %} | ||
| 62 | <td> | 70 | <td> |
| 63 | <a href="{% url 'package_included_detail' build.id target.id other_dep.depends_on_id %}"> | 71 | <a href="{% url 'package_included_detail' build.id target.id other_dep.depends_on_id %}"> |
| 64 | {{other_dep.name}} | 72 | {{other_dep.name}} |
| 65 | </a> | 73 | </a> |
| 66 | </td> | 74 | </td> |
| 75 | {% else %} | ||
| 76 | <td> | ||
| 77 | {{other_dep.name|format_vpackage_namehelp}} | ||
| 78 | </td> | ||
| 79 | {% endif %} | ||
| 67 | <td>{{other_dep.version}}</td> | 80 | <td>{{other_dep.version}}</td> |
| 68 | <td>{{other_dep.size|filtered_filesizeformat}}</td> | 81 | <td>{{other_dep.size|filtered_filesizeformat}}</td> |
| 69 | <td> | 82 | <td> |
