{% extends 'base.html' %} {% load inventory_extras ui_extras %} {% block content %}

Package name{{ name_number|pluralize }} ({{ name_number }}) / Package{{ info_number|pluralize }} ({{ info_number }})

{{ form }}
{% if perms.add_pkginfoname or perms.add_pkginfo %} {% endif %}
{% if pkg_names %} {% if perms.monolith.delete_pkginfo or perms.monolith.change_pkginfo %} {% endif %} {% for pkg_info_name in pkg_names %} {% if perms.monolith.delete_pkginfo or perms.monolith.change_pkginfo %} {% endif %} {% for pkg_info in pkg_info_name.pkg_infos %} {% if pkg_info.options %} {% else %} {% endif %} {% if perms.monolith.delete_pkginfo or perms.monolith.change_pkginfo %} {% endif %} {% endfor %} {% endfor %}
Package Catalogs Excl. tags Def. shard Tag shards Installs
{{ pkg_info_name.name }} {{ pkg_info_name.count }}
{{ pkg_info.version }} {% for catalog in pkg_info.catalogs %}{% if perms.monolith.view_catalog %}{{ catalog.name }}{% else %}{{ catalog.name }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %} {% for tag in pkg_info.options.excluded_tags %} {% inventory_tag tag %} {% empty %} - {% endfor %} {{ pkg_info.options.shards.default }}/{{ pkg_info.options.shards.modulo }} {% if pkg_info.options.shards.tags %} {% for tag, shard in pkg_info.options.shards.tags %} {% endfor %}
{% inventory_tag tag %}{{ shard }}
{% else %} - {% endif %}
- - -{{ pkg_info.count }}{% if pkg_info.percent %} - {{ pkg_info.percent|floatformat }}%{% endif %} {% if pkg_info.local %} {% if perms.monolith.change_pkginfo %} {% url 'monolith:update_package' pkg_info.pk as url %} {% button 'UPDATE' url "Edit PkgInfo" %} {% endif %} {% if perms.monolith.delete_pkginfo %} {% url 'monolith:delete_pkg_info' pkg_info.pk as url %} {% button 'DELETE' url "Delete PkgInfo" %} {% endif %} {% else %} {% if perms.monolith.change_pkginfo and pkg_info.local %} {% url 'monolith:update_pkg_info_catalog' pkg_info.pk as url %} {% button 'UPDATE' url "Change PkgInfo catalogs" %} {% endif %} {% endif %}
{% elif form.has_changed %} {% url 'monolith:pkg_infos' as empty_results_url %} {% empty_results empty_results_url %} {% endif %} {% endblock %}