Fix history calendar

This commit is contained in:
Edgar P. Burkhart 2024-01-03 15:37:48 +01:00
parent cc551c536c
commit e2f7a1dcc3
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -59,12 +59,12 @@
</thead> </thead>
<tbody> <tbody>
{% regroup history.data by month.year as years_list %} {% regroup history.data by month.year as years_list %}
{% for y, year in years_list reversed %} {% for y, y_data in years_list reversed %}
<tr> <tr>
{% if not year %} {% if not year %}
<th class="date" scope="row">{% year_url y %}</th> <th class="date" scope="row">{% year_url y %}</th>
{% endif %} {% endif %}
{% for m in year %} {% for m in y_data %}
{% if forloop.parentloop.last and forloop.first %} {% if forloop.parentloop.last and forloop.first %}
{% empty_calendar_cells_start m.month.month %} {% empty_calendar_cells_start m.month.month %}
{% endif %} {% endif %}