fix: affichage des dates en français via filtre Jinja2 date_fr
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<div class="bg-white rounded-xl shadow p-4 mb-4">
|
||||
<h2 class="font-semibold text-gray-700 mb-2">
|
||||
Aujourd'hui — {{ today.strftime('%A %d %B %Y') }}
|
||||
Aujourd'hui — {{ today | date_fr }}
|
||||
</h2>
|
||||
{% if today_entry %}
|
||||
<p class="text-green-700 font-medium">{{ today_entry.day_type }} — {{ today_entry.total_hours_str() }}</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{% for entry in entries %}
|
||||
<div class="bg-white rounded-xl shadow p-3 flex items-center justify-between">
|
||||
<div>
|
||||
<p class="font-medium text-sm">{{ entry.date.strftime('%a %d %b %Y') }}</p>
|
||||
<p class="font-medium text-sm">{{ entry.date | date_fr }}</p>
|
||||
<p class="text-xs text-gray-500">
|
||||
{{ entry.day_type }}
|
||||
{% if entry.time_slots %} — {{ entry.total_hours_str() }}{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user