{% with module.get_gwports_sorted as gwports %} {% if gwports|length %}

{{ module.module_number }}

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