{% load i18n %} {% load thumbnail %} {% for object in object.files %} {% with category_file.file as file %} {% if forloop.first or forloop.counter0|divisibleby:"4" %}
{% endif %}
{% thumbnail object.file.file "145x90" crop="center" as thumb %} {% thumbnail object.file.file "1920x1920" as image %} {% endthumbnail %} {% endthumbnail %}
{% if forloop.counter0|divisibleby:"4" %}
{% endif %} {% endwith %} {% endfor %}