{% for tag_cat, tags in tags_groups %} {% if forloop.first %} {% else %} {% ifnotequal forloop.counter 2 %} {% endifnotequal %} {% endif %} {% endfor %} {% if orphaned_tags %} {% endif %} {% for tag_cat, tags, tags_hidden in tags_groups %} {% endfor %} {% if orphaned_tags %} {% endif %}

{{ tag_cat }}

{{ tag_cat }}

Прочее

{% include 'view-tags-list.html' %} {% with orphaned_tags as tags %} {% include 'view-tags-list.html' %} {% endwith %}