{% extends 'base.html' %} {% from 'nodes.html' import list_nodes, list_nodes_by_environment %} {% block title %}{{ package_name }} - {{ package_type }} package{% endblock %} {% block header %}{{ package_name }} {{ package_type }} package{% endblock %} {% set nodes_by_version = nodes | groupby('package_version') %} {% block body %}

Package versions

{% if nodes_by_version %} {% else %}

No package versions to display.

{% endif %}

Nodes by package version

{% if nodes_by_version | count > 1 %}

{{ nodes_by_version | count }} versions of {{ package_name }} are installed across {{ nodes | count }} nodes.

{% else %}

Only one version of this package is installed :)

{% endif %} {% for group in nodes_by_version %}

{{ group.grouper }}

{{ list_nodes(group.list) }} {% else %}

No nodes to display.

{% endfor %}
{% endblock %}