{% with module.get_swports_sorted as swports %} {% if swports|length %}

{{ module.module_number }}

{% for swport in swports %} {% if swports|length|divisibleby:12 %} {% if forloop.counter|divisibleby:12 %}{% endif %} {% else %} {% if swports|length|divisibleby:8 %} {% if forloop.counter|divisibleby:8 %}{% endif %} {% else %} {% if forloop.counter|divisibleby:10 %}{% endif %} {% endif %} {% endif %} {% endfor %}
{{ swport.get_interface_display }}
{% endif %} {% endwith %}