diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-11-04 15:17:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:17 +0000 |
commit | d6e7e4ad43471fdaa1b6184bd13c91069478839e (patch) | |
tree | b20a3016acd99133f29f294059fcea12dfed99f8 /bitbake/lib/toaster/toastergui/templates | |
parent | 43f0a05fa4da39be3ed84a49a3fba6951110a8fd (diff) | |
download | poky-d6e7e4ad43471fdaa1b6184bd13c91069478839e.tar.gz |
bitbake: toaster: tables Add table for Packages and update SelectPackagesTable
Create a Packages table for use as the image details page.
Change the SelectPackagesTable table to inherit from the Packages table.
Remove the need for a separate view by adding the additional template
context items to the Table's page context.
(Bitbake rev: 336b1d8369d9e86ece78b63cb0e140e653216011)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html new file mode 100644 index 0000000000..a08409ac7f --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html | |||
@@ -0,0 +1,14 @@ | |||
1 | {# Popover that displays the dependences and sizes of a package 'data' used in the Packages table #} | ||
2 | {% with data.package_dependencies_source.count as dep_count %} | ||
3 | {% load projecttags %} | ||
4 | {% if dep_count %} | ||
5 | <a data-content="<ul class='unstyled'> | ||
6 | {% for dep in data.package_dependencies_source.all %} | ||
7 | <li>{{dep.depends_on.name}} {% if dep.depends_on.size > 0 %}({{dep.depends_on.size|filtered_filesizeformat}}){% endif %}</li> | ||
8 | {% endfor %} | ||
9 | </ul>" title="" class="btn" data-original-title=" | ||
10 | <strong>{{data.name}}</strong> dependencies - <strong>{{data.package_dependencies_source.get_total_source_deps_size.depends_on__size__sum|filtered_filesizeformat}}</strong>"> | ||
11 | {{dep_count}} | ||
12 | </a> | ||
13 | {% endif %} | ||
14 | {% endwith %} | ||