{% extends 'base.html' %} {% load bootstrap inventory_extras %} {% block content %} {% if machine %}
Name
{{ machine.computer_name|default:"-" }}
Serial number
{{ machine.serial_number }}
Tags
{% for tag in machine.tags %} {% inventory_tag tag %} {% empty %} - {% endfor %}

{{ packages|length }} Package{{ pkgsinfo|length|pluralize }}

{% for package_name, package_data in packages %} {% if package_data.manifest %} {% endif %} {% if package_data.sub_manifests %} {% for sub_manifest, key, excluded_tags, shard_repr, default_shard_repr, tag_shards, included in package_data.sub_manifests %} {% endfor %} {% endif %} {% if package_data.pkgsinfo %} {% for pkginfo, status, excluded_tags, shard_repr, default_shard_repr, tag_shards, included in package_data.pkgsinfo %} {% endfor %} {% endif %} {% endfor %}

{{ package_name }}

Key Excl. tags Shard Default shard Tag shards
Manifest {{ package_data.manifest }} - - - -
Sub manifest Key Excl. tags Shard Default shard Tag shards
{% if perms.monolith.view_submanifest %} {{ sub_manifest }} {% else %} {{ sub_manifest }} {% endif %} {{ key }} {% for tag in excluded_tags %} {% inventory_tag tag %} {% empty %} - {% endfor %} {{ shard_repr|default:"-" }} {{ default_shard_repr|default:"-" }} {% if tag_shards %} {% for tag, shard in tag_shards %} {% endfor %}
{% inventory_tag tag %}{{ shard }}
{% else %} - {% endif %}
Version Status Excl. tags Shard Default shard Tag shards
{{ pkginfo.version }} {% if status == "installed" %}installed{% endif %} {% if status == "reinstalled" %}reinstalled{% endif %} {% if status == "failed" %}failed{% endif %} {% if not status %}-{% endif %} {% for tag in excluded_tags %} {% inventory_tag tag %} {% empty %} - {% endfor %} {{ shard_repr|default:"-" }} {{ default_shard_repr|default:"-" }} {% if tag_shards %} {% for tag, shard in tag_shards %} {% endfor %}
{% inventory_tag tag %}{{ shard }}
{% else %} - {% endif %}
{% endif %} {% endblock %} {% block extrajs %} {% endblock %}