Calendar-View: add short_month_day_format for week-views (#2392)

This commit is contained in:
Richard Schreiber
2021-12-21 11:19:58 +01:00
committed by GitHub
parent 0bf7bba6ba
commit b6273adc57
6 changed files with 14 additions and 4 deletions

View File

@@ -24,7 +24,7 @@
<option value="{{ w.0.isocalendar.0 }}-W{{ w.0.isocalendar.1 }}"
{% if w.0.isocalendar.0 == subevent_list.date.isocalendar.0 and w.0.isocalendar.1 == subevent_list.date.isocalendar.1 %}selected{% endif %}>
{{ w.0|date:subevent_list.week_format }}
({{ w.0|date:"MONTH_DAY_FORMAT" }} {{ w.1|date:"MONTH_DAY_FORMAT" }})
({{ w.0|date:subevent_list.short_month_day_format }} {{ w.1|date:subevent_list.short_month_day_format }})
</option>
{% endfor %}
</optgroup>

View File

@@ -30,7 +30,7 @@
<option value="{{ w.0.isocalendar.0 }}-W{{ w.0.isocalendar.1 }}"
{% if w.0.isocalendar.0 == date.isocalendar.0 and w.0.isocalendar.1 == date.isocalendar.1 %}selected{% endif %}>
{{ w.0|date:week_format }}
({{ w.0|date:"MONTH_DAY_FORMAT" }} {{ w.1|date:"MONTH_DAY_FORMAT" }})
({{ w.0|date:short_month_day_format }} {{ w.1|date:short_month_day_format }})
</option>
{% endfor %}
</optgroup>