diff options
Diffstat (limited to 'poky/bitbake/lib/toaster/toastergui/templates/snippets')
3 files changed, 84 insertions, 0 deletions
diff --git a/poky/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html b/poky/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html new file mode 100644 index 000000000..c1e3dabfb --- /dev/null +++ b/poky/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html @@ -0,0 +1,8 @@ +{% load projecttags %} +{% if vcs_ref|is_shaid %} +<a class="btn btn-default" data-content="{{vcs_ref}}"> + {{vcs_ref|truncatechars:10}} +</a> +{% else %} +{{vcs_ref}} +{% endif %} diff --git a/poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html b/poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html new file mode 100644 index 000000000..273437e38 --- /dev/null +++ b/poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html @@ -0,0 +1,38 @@ +{# Popover that displays the dependences and sizes of a package 'data' used in the Packages table #} +{% load projecttags %} + +{% with package_deps=data.package_dependencies_source|for_target:extra.target_name %} +{% with count_package=package_deps.packages|length %} + +{% if count_package > 0 %} + <a data-content='<ul class="list-unstyled"> + {% for dep in package_deps.packages %} + <li> + {% if extra.add_links %} + <a href="{% url 'package_included_detail' extra.build.pk extra.target_id dep.depends_on.pk %}"> + {{dep.depends_on.name}}</a> + {% else %} + {{dep.depends_on.name}} + {% endif %} + {% if dep.depends_on.size > 0 %} + ({{dep.depends_on.size|filtered_filesizeformat}}) + {% endif %} + </li> + {% endfor %} + </ul>' class="btn btn-default" title=' + <strong> + {% if extra.add_links %} + <a href="{% url 'package_included_dependencies' extra.build.pk extra.target_id data.pk %}"> + {{data.name}}</a> + {% else %} + {{data.name}} + {% endif %} + </strong> + dependencies - + <strong>{{package_deps.size|filtered_filesizeformat}}</strong>'> + {{count_package}} + </a> +{% endif %} + +{% endwith %} +{% endwith %} diff --git a/poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html b/poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html new file mode 100644 index 000000000..e6ef816e7 --- /dev/null +++ b/poky/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html @@ -0,0 +1,38 @@ +{# Popover that displays the reverse dependences and sizes of a package 'data' used in the Packages table #} +{% load projecttags %} + +{% with package_deps=data.package_dependencies_target|for_target:extra.target_name %} +{% with count_package=package_deps.packages|length %} + +{% if count_package > 0 %} + <a data-content='<ul class="list-unstyled"> + {% for dep in package_deps.packages|dictsort:"package.name" %} + <li> + {% if extra.add_links %} + <a href="{% url 'package_included_detail' extra.build.pk extra.target_id dep.package.pk %}"> + {{dep.package.name}}</a> + {% else %} + {{dep.package.name}} + {% endif %} + {% if dep.package.size > 0 %} + ({{dep.package.size|filtered_filesizeformat}}) + {% endif %} + </li> + {% endfor %} + </ul>' class="btn btn-default" title=' + <strong> + {% if extra.add_links %} + <a href="{% url 'package_included_reverse_dependencies' extra.build.pk extra.target_id data.pk %}"> + {{data.name}}</a> + {% else %} + {{data.name}} + {% endif %} + </strong> + dependencies - + <strong>{{package_deps.size|filtered_filesizeformat}}</strong>'> + {{count_package}} + </a> +{% endif %} + +{% endwith %} +{% endwith %} |