Š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}} {%if item.role == "mentor" %}Mentor{%elif item.role == "coordinator" %}Koordinator{%elif item.role == "other" %}{{item.badge_text}}{%endif%}
{% endfor %}