Fix history calendar
This commit is contained in:
parent
cc551c536c
commit
e2f7a1dcc3
1 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue