{% load i18n %}

{% with ancestors|last as last %}
    {% if ancestors|length > 3 or request.current_page.parent.reverse_id == 'calendar' or request.current_page.parent.reverse_id == 'news' %}
        <a href="{{ last.parent.get_absolute_url }}" class="button button--small">
            <span class="button__icon">{% include 'project/assets/arrow-left-long.svg' %}</span>
            <span class="button__text">{% trans 'Zurück' %}</span>
        </a>
        <br><br><br>
    {% endif %}
{% endwith %}
