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

{{ object.name }}

{% if show_events_link or store_links %} {% if show_events_link %} {% url 'monolith:pkg_info_name_events' object.pk as url %} {% button 'EVENTS' url %} {% endif %} {% for link, anchor_text in store_links %} {% button 'LINK' link anchor_text %} {% endfor %} {% endif %}

Package

{% if perms.monolith.add_pkginfo %} {% endif %} {% if perms.monolith.delete_pkginfo and object.can_be_deleted %} {% url 'monolith:delete_pkg_info_name' object.pk as url %} {% button 'DELETE' url "Delete Package Info" %} {% endif %}
{% if perms.monolith.view_submanifest %}

Sub manifest{{ sub_manifests|length|pluralize }} ({{ sub_manifests|length }})

{% if sub_manifests %} {% for sub_manifest, key in sub_manifests %} {% endfor %}
Sub manifest Key
{{ sub_manifest }} {{ key }}
{% endif %} {% endif %}
{% if perms.monolith.view_pkginfo %}

Version{{ pkg_infos|length|pluralize }} ({{ pkg_infos|length }})

{% if pkg_infos %} {% if perms.monolith.delete_pkginfo or perms.monolith.change_pkginfo %} {% endif %} {% for pkg_info in pkg_infos %} {% if pkg_info.options %} {% else %} {% endif %} {% if perms.monolith.change_pkginfo or perms.monolith.delete_pkginfo %} {% endif %} {% endfor %}
Version Catalogs Excl. tags Def. shard Tag shards Installs
{{ 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 Package Info" %} {% 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 %}
{% endif %} {% endif %} {% endblock %}