{% extends "agenda_culturel/page.html" %} {% load cache %} {% load cat_extra %} {% load event_extra %} {% load utils_extra %} {% load static %} {% load i18n %} {% block entete_header %} {% css_categories %} {% endblock %} {% block navigation-menu %} {% cache 90000 navigation_links_upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} {% navigation_links filter category calendar "upcoming" %} {% endcache %} {% endblock %} {% block when_parameters %}{{ filter.get_url }}{% endblock %} {% block body-class %}a-venir{% endblock %} {% block content %}
{% cache 60000 upcoming_title user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %}

{% block title %} {% block og_title %} {% if category %} {{ category.name }} {% else %} Événements {% endif %} {% if calendar.is_today %} à venir {% else %} du {{ calendar.firstdate | date:"l j F Y" }} {% if calendar.nb_days > 1 %}et suivants{% endif %} {% endif %} {% if filter.has_location %}à {{ filter.get_position }}{% endif %} {% endblock %} {% endblock %}

{% endcache %} {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} {% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %} {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=1 %}
{% for cd in calendar.calendar_days_list %}
{% if calendar.nb_days > 1 %}
{% picto_from_name "chevrons-up" %} {% if cd.is_today %}
{% with cd.events|length as nb_events %}

Aujourd'hui {{ nb_events }} événement{{ nb_events|pluralize }} {% picto_from_name "calendar" %}

{% endwith %}

{{ cd.date|date:"l j F Y"|frdate }} {% if cd.periods|length > 0 %}
{% for p in cd.periods %} {{ p.name }} {% if not forloop.last %},{% endif %} {% endfor %} {% endif %}

{% else %} {% if cd.is_tomorrow %}

Demain {{ cd.events|length }} {% picto_from_name "calendar" %}

{{ cd.date|date:"l j F Y"|frdate }} {% if cd.periods|length > 0 %}
{% for p in cd.periods %} {{ p.name }} {% if not forloop.last %},{% endif %} {% endfor %} {% endif %}

{% else %} {% if cd.periods|length > 0 %}

{{ cd.date|date:"l j F Y"|frdate |capfirst }} {{ cd.events|length }} {% picto_from_name "calendar" %}

{% if cd.periods|length > 0 %} {% for p in cd.periods %} {{ p.name }} {% if not forloop.last %},{% endif %} {% endfor %}

{% else %}

{{ cd.date|date:"l j F Y"|frdate |capfirst }} {{ cd.events|length }} {% picto_from_name "calendar" %}

{% endif %} {% endif %} {% endif %} {% endif %}
{% endif %} {% if cd.events|length > 0 %}
{% for ti in cd.get_time_intervals %} {% if ti.events|length > 0 %}

{{ ti.short_name }} {{ ti.events|length }} {% picto_from_name "chevrons-down" %}

{% endif %} {% endfor %}
{% else %} Aucun événement {% endif %}
{% for ti in cd.get_time_intervals %} {% if ti.events|length > 0 %}
{% picto_from_name "chevron-up" %}

{{ ti.name|capfirst }}

{{ ti.date| date:"l j F"|frdate }}

{% with indexti=cd.id %} {% for event in ti.events %} {% include "agenda_culturel/single-event/event-elegant-inc.html" with event=event filter=filter day=day indexti=indexti %} {% endfor %} {% endwith %}
{% endif %} {% endfor %} {% endfor %}

Voir aussi

{% if calendar.today_in_calendar %} {% if category %} Aujourd'hui {% else %} Aujourd'hui {% endif %} {% endif %} {% if calendar.nb_days == 1 %} {% if category %} Autour du {{ day }} {% else %} Autour du {{ day }} {% endif %} {% endif %} {% if category %} Semaine du {{ calendar.firstdate }} {{ calendar.firstdate | date:"F o" }} {% else %} Semaine du {{ calendar.firstdate }} {{ calendar.firstdate | date:"F o" }} {% endif %} {% if calendar.firstdate.month != calendar.lastdate.month %} {% if category %} {{ calendar.lastdate | date:"F o" }} {% else %} {{ calendar.lastdate | date:"F o" }} {% endif %} {% endif %} {% if category %} S'abonner à l'agenda {% picto_from_name "calendar" %} {% else %} S'abonner à l'agenda {% picto_from_name "calendar" %} {% endif %}
{% endcache %} {% endwith %} {% endblock %}