mirror of
git://git.yoctoproject.org/poky
synced 2026-09-13 04:43:37 +00:00
Add a column to the custom image pages that shows the reverse
dependencies in a format matching the dependencies column:
- either blank or a button showing the count of reverse dependencies,
- when the button is clicked, a popover appears showing the list
of reverse dependencies, with each package's size, and the total
size of all of the reverse dependencies.
The implementation adds a packages table method to retreive the reverse
dependency total size, and adds a separate 'popover' html template. Both
of these changes follow the pattern for the dependencies column.
[YOCTO #9163]
(Bitbake rev: 2f978dccaa1ec82c7ad350bdc1cd9500000984eb)
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 lines
774 B
HTML
15 lines
774 B
HTML
{# Popover that displays the reverse dependencies and sizes of a package 'data' used in the Packages table #}
|
|
{% with data.package_dependencies_target.all_depends.count as dep_count %}
|
|
{% load projecttags %}
|
|
{% if dep_count %}
|
|
<a data-content="<ul class='unstyled'>
|
|
{% for dep in data.package_dependencies_target.all_depends|dictsort:'package.name' %}
|
|
<li>{{dep.package.name}} {% if dep.package.size > 0 %}({{dep.package.size|filtered_filesizeformat}}){% endif %}</li>
|
|
{% endfor %}
|
|
</ul>" title="" class="btn" data-original-title="
|
|
<strong>{{data.name}}</strong> reverse dependencies - <strong>{{data.package_dependencies_target.get_total_revdeps_size.package_id__size__sum|filtered_filesizeformat}}</strong>">
|
|
{{dep_count}}
|
|
</a>
|
|
{% endif %}
|
|
{% endwith %}
|