{% load string_manipulation %} {% with module.ports as ports %} {% if ports|length %} {% if module.object %} {% else %} {% endif %} {% for port in ports %} {% if ports|length|divisibleby:12 %} {% if forloop.counter|divisibleby:12 %}{% endif %} {% else %} {% if ports|length|divisibleby:8 %} {% if forloop.counter|divisibleby:8 %}{% endif %} {% else %} {% if forloop.counter|divisibleby:10 %}{% endif %} {% endif %} {% endif %} {% endfor %}
Module {{ module.object.name }}No module
{% endif %} {% endwith %}