{% load cms_tags i18n %}

{% page_url 'oneday' as oneday_url %}
{% page_url 'news' as news_url %}
{% page_url 'calendar' as calendar_url %}
{% page_url 'contact' as contact_url %}
{% if oneday_url %}
    <a href="{{ oneday_url }}" class="header__button header__button--reverse header__button--light data_id_0
    {% if oneday_url == request.path %}active{% endif %}">
        <span class="header__button__icon">
            {% include 'project/assets/oneday.svg' %}
        </span>
        {% trans 'One Day' %}
    </a>
{% endif %}
{% if news_url %}
    <a href="{{ news_url }}" class="header__button header__button--reverse header__button--light data_id_1
    {% if news_url == request.path %}active{% endif %}">
        <span class="header__button__icon">
            {% if new_news_amount %}
                <span class="header__button__icon__number">{{ new_news_amount }}</span>
            {% endif %}
            {% include 'project/assets/news.svg' %}
        </span>
        {% trans 'News' %}
    </a>
{% endif %}
{% if calendar_url %}
    <a href="{{ calendar_url }}" class="header__button header__button--reverse header__button--light data_id_2
    {% if calendar_url == request.path %}active{% endif %}">
        <span class="header__button__icon">
            {% if 0 and new_calendar_amount %}
                <span class="header__button__icon__number">{{ new_calendar_amount }}</span>
            {% endif %}
            {% include 'project/assets/calendar.svg' %}
        </span>
        {% trans 'Kalender' %}
    </a>
{% endif %}
{% if contact_url %}
    <a href="{{ contact_url }}" class="header__button header__button--reverse header__button--light data_id_3
    {% if contact_url == request.path %}active{% endif %}">
        <span class="header__button__icon">
            {% include 'project/assets/contact.svg' %}
        </span>
        {% trans 'Standort & Kontakt' %}
    </a>
{% endif %}
{% if notification %}
    <a href="#" data-updated="{{ notification.updated }}"
       class="header__button header__button--notification header__button--reverse header__button--light data_id_4">
        <span class="header__button__icon">
            <span class="header__button__icon__number">1</span>
            {% include 'project/assets/bell.svg' %}
        </span>
        {% trans 'Aktuell' %}
    </a>
{% endif %}