diff --git a/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html b/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html index ee5a87b..0fd188c 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-upcoming.html @@ -23,14 +23,17 @@ {% get_current_language as LANGUAGE_CODE %} {% with cache_timeout=user.is_authenticated|yesno:"30,600" %} - {% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.to_str LANGUAGE_CODE %} + {% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.to_str calendar.calendar_days_list|length LANGUAGE_CODE %}

{% block title %}{% block og_title %} - {% if calendar.calendar_days_list.0.is_now %} + {% if calendar.calendar_days_list.0.is_today %} Événements à venir {% else %} Événements du {{ calendar.calendar_days_list.0.date| date:"l j F Y" }} + {% if calendar.calendar_days_list|length > 1 %} + et suivants + {% endif %} {% endif %} {% endblock %}{% endblock %}

@@ -38,7 +41,7 @@ {% include "agenda_culturel/filter-inc.html" with filter=filter %}