{% load static %} {% load cat_extra %} {% load utils_extra %} {% load event_extra %} {% load tag_extra %}
{% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %} {{ event.category | small_cat_recurrent:event.has_recurrences }}

{{ event|picto_status }} {{ event.title }} {{ event|picto_visibility:user.is_authenticated }}

{% picto_from_name "calendar" %} {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %} {% include "agenda_culturel/date-times-inc.html" with event=event %}

{% picto_from_name "map-pin" %} {% include "agenda_culturel/event-location-inc.html" with event=event %}

{% if user.is_authenticated %} {% if event.other_versions %} {% with poss_dup=event.get_other_versions %} {% if poss_dup|length > 0 %}

{% if event.other_versions.representative %} Cet événement existe en plusieurs versions, {% if event.masked %} vous pouvez consulter la version mise en avant {% else %} et vous consultez la version mise en avant. {% endif %} {% else %} cet événement existe probablement en plusieurs versions. {% endif %}

{% endif %} {% endwith %} {% if event.get_other_not_trash_versions|length == 0 %}

Aucune autre version n'est accessible publiquement

{% endif %} {% endif %} {% else %} {% if event.other_versions.representative and event.masked %}

Vous consultez l'événement dans une version non consolidée. Nous vous invitons à consulter sa version représentative.

{% endif %} {% endif %}
{% if event.has_image_url %}
{{ event.image_alt }}
{% endif %}

{{ event.description |linebreaks | robust_urlize }}