[TASK] add day of week

This commit is contained in:
Marie Birner 2023-04-07 12:46:21 +02:00
parent bca65e15c6
commit fb6dee0fcc
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
- [ ] Allow sign-outs only >2h before event - [ ] Allow sign-outs only >2h before event
# Notes / Bugfixes # Notes / Bugfixes
[] enable date-locale support for tera templating https://tera.netlify.app/docs/#date
# Frontend Process # Frontend Process
´cd frontend´ ´cd frontend´
´npm install´ ´npm install´

View File

@ -27,7 +27,7 @@
{% set amount_trips = day.planned_events | length + day.trips | length %} {% set amount_trips = day.planned_events | length + day.trips | length %}
<div class="bg-white p-3 rounded-md flex justify-between flex-col" data-trips="{{ amount_trips }}"> <div class="bg-white p-3 rounded-md flex justify-between flex-col" data-trips="{{ amount_trips }}">
<div> <div>
<h2 class="text-lg text-primary-950 font-bold uppercase tracking-wide">{{ day.day| date(format="%d.%m.%Y") }}</h2> <h2 class="text-lg text-primary-950 font-bold uppercase tracking-wide">{{ day.day| date(format="%d.%m.%Y") }} <small>{{ day.day| date(format="%A", locale="de_DE") }}</small></h2>
{% if day.planned_events | length > 0 %} {% if day.planned_events | length > 0 %}
<div class="grid grid-cols-1 gap-3 divide-y mb-3"> <div class="grid grid-cols-1 gap-3 divide-y mb-3">