On utilise une donnée présente pour gagner du temps

This commit is contained in:
Jean-Marie Favreau 2024-09-12 18:07:08 +02:00
parent 30bc5f49e8
commit 2637132a28

View File

@ -16,7 +16,7 @@
<script src="{% static 'js/calendar-buttons.js' %}"></script>
{% endblock %}
{% block title %}{% block og_title %}Semaine du {{ calendar.calendar_days_list.0.date|date|frdate }}{% endblock %}{% endblock %}
{% block title %}{% block og_title %}Semaine du {{ calendar.firstdate|date|frdate }}{% endblock %}{% endblock %}
{% block content %}
@ -32,7 +32,7 @@
{% if calendar.today_in_calendar %}
Cette semaine
{% else %}
semaine du {{ calendar.calendar_days_list.0.date |date:"j F"|frdate }}
semaine du {{ calendar.firstdate.date |date:"j F"|frdate }}
{% endif %}</h1></div>
<div class="navigation">
<div>