Število oddaj na uporabnika
{% set vars = {'prev_schoolyear': ''} %}
{% for item in cooperation_history %}
{% if item.school_year != vars.prev_schoolyear %}
Šolsko leto {{item.school_year}}
{% if vars.update({'prev_schoolyear': item.school_year}) %} {% endif %}
{% endif %}
{{item.name}} {{item.badge_text}}
{% endfor %}