diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html | 44 |
1 files changed, 34 insertions, 10 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 index 0a24e9217e..5be409ca44 100644 --- a/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html +++ b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html | |||
@@ -1,14 +1,38 @@ | |||
1 | {# Popover that displays the dependences and sizes of a package 'data' used in the Packages table #} | 1 | {# Popover that displays the dependences and sizes of a package 'data' used in the Packages table #} |
2 | {% with data.package_dependencies_source.all_depends.count as dep_count %} | ||
3 | {% load projecttags %} | 2 | {% load projecttags %} |
4 | {% if dep_count %} | 3 | |
5 | <a data-content="<ul class='list-unstyled'> | 4 | {% with package_deps=data.package_dependencies_source|for_target:extra.target_name %} |
6 | {% for dep in data.package_dependencies_source.all_depends %} | 5 | {% with count_package=package_deps.packages|length %} |
7 | <li>{{dep.depends_on.name}} {% if dep.depends_on.size > 0 %}({{dep.depends_on.size|filtered_filesizeformat}}){% endif %}</li> | 6 | |
8 | {% endfor %} | 7 | {% if count_package > 0 %} |
9 | </ul>" class="btn btn-default" title=" | 8 | <a data-content='<ul class="unstyled"> |
10 | <strong>{{data.name}}</strong> dependencies - <strong>{{data.package_dependencies_source.get_total_source_deps_size.depends_on__size__sum|filtered_filesizeformat}}</strong>"> | 9 | {% for dep in package_deps.packages %} |
11 | {{dep_count}} | 10 | <li> |
12 | </a> | 11 | {% if extra.add_links %} |
12 | <a href="{% url 'package_included_detail' extra.build.pk extra.target_id dep.depends_on.pk %}"> | ||
13 | {{dep.depends_on.name}}</a> | ||
14 | {% else %} | ||
15 | {{dep.depends_on.name}} | ||
16 | {% endif %} | ||
17 | {% if dep.depends_on.size > 0 %} | ||
18 | ({{dep.depends_on.size|filtered_filesizeformat}}) | ||
19 | {% endif %} | ||
20 | </li> | ||
21 | {% endfor %} | ||
22 | </ul>' class="btn btn-default" title=' | ||
23 | <strong> | ||
24 | {% if extra.add_links %} | ||
25 | <a href="{% url 'package_included_dependencies' extra.build.pk extra.target_id data.pk %}"> | ||
26 | {{data.name}}</a> | ||
27 | {% else %} | ||
28 | {{data.name}} | ||
29 | {% endif %} | ||
30 | </strong> | ||
31 | dependencies - | ||
32 | <strong>{{package_deps.size|filtered_filesizeformat}}</strong>'> | ||
33 | {{count_package}} | ||
34 | </a> | ||
13 | {% endif %} | 35 | {% endif %} |
36 | |||
37 | {% endwith %} | ||
14 | {% endwith %} | 38 | {% endwith %} |