{% load utils_extra %}

<article class='ephemeris'>
    {% if event.is_single_day %}
        {{ event.start_day |date:"l" }}<br />
        <a href="{{ event.start_day | url_day }}?{{ filter.get_url }}"><span class="large">{{ event.start_day |date:"j" }}</span><br />
        {{ event.start_day |date:"F" }}{% if with_year %} {{ event.start_day |date:"Y" }}{% endif %}</a>
        {% if event.start_time %}
            <footer>
                <span class="large">{{ event.start_time }}</span>
            </footer>
        {% endif %}
    {% else %}
     du
     {{ event.start_day |date:"D" }}<br />
     <a href="{{ event.start_day | url_day }}?{{ filter.get_url }}"><span class="large">{{ event.start_day |date:"j" }} </span>
     {% if event.start_day|date:"F" != event.end_day|date:"F" %}
        {{ event.start_day |date:"F" }}
     {% endif %}</a><br />
     au 
     {{ event.end_day |date:"D" }} <br />
     <a href="{{ event.end_day | url_day }}?{{ filter.get_url }}"><span class="large">{{ event.end_day |date:"j" }}</span>
        {% if event.start_day|date:"F" == event.end_day|date:"F" %}<br />{% endif %}
     {{ event.end_day |date:"F" }}</a>
    {% endif %}
</article>
