{% load static %}

{{ texts.title }}

{{ summary.total }} {{ texts.ports }} · {{ summary.connected }} {{ texts.connected }} · {{ summary.free }} {{ texts.free }} · {{ summary.disabled }} {{ texts.disabled }}
{{ texts.export }}
{% if not has_ports %} {{ texts.none }} {% else %} {% for unit in units %} {% if stack %}
{{ unit.device }}{% if unit.current %} {{ texts.this_device }}{% endif %}
{% endif %}
{% for group in unit.groups %}
{{ group.title }}
{% for column in group.columns %}
{% for port in column %} {{ port.short }} {{ port.vlan }} {% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{{ texts.connected }} {{ texts.free }} {{ texts.disabled }}
{% for vlan, color, total, connected in legend %} {{ vlan|default:texts.no_label }} ({{ connected }}/{{ total }}) {% endfor %}
{% endif %}