On affiche les périodes de la journée

Fix #350
This commit is contained in:
Jean-Marie Favreau 2025-03-09 16:18:30 +01:00
parent ae26f3630c
commit 4df5667f88
2 changed files with 117 additions and 102 deletions

View File

@ -2070,3 +2070,15 @@ dialog {
padding: 0;
}
}
#calendar.week {
h3 {
font-size: 100%;
margin: 0 0.2em;
padding-left: 0.1em;
border-bottom: 1px solid var(--secondary);
}
.day header {
margin-bottom: 0.5em;
}
}

View File

@ -88,7 +88,7 @@
{% endif %}
</div>
</header>
<div id="calendar">
<div id="calendar" class="week">
<div class="slider-button slider-button-inside button-left hidden">{% picto_from_name "arrow-left" %}</div>
{% if calendar.firstdate|shift_day:-1|not_before_first %}
{% if calendar.lastdate|not_after_last %}
@ -126,9 +126,11 @@
href="{{ day.date | url_day:category }}?{{ filter.get_url }}">{{ day.date | date:"l j" }}</a>
</h2>
</header>
{% if day.events %}
{% for ti in day.get_time_intervals %}
{% if ti.events|length > 0 %}
{% if not forloop.first %}<h3>{{ ti.short_name }}</h3>{% endif %}
<ul>
{% for event in day.events %}
{% for event in ti.events %}
{% if event.is_first_after_now %}
<li class="line-now">
<div>
@ -228,12 +230,13 @@
</div>
</li>
{% endif %}
<li class="detail-link">
<a href="{{ day.date | url_day }}?{{ filter.get_url }}"
class="visible-link">voir en détail {% picto_from_name "chevrons-right" %}</a>
</li>
</ul>
{% endif %}
{% endfor %}
<p class="detail-link">
<a href="{{ day.date | url_day }}?{{ filter.get_url }}"
class="visible-link">voir en détail {% picto_from_name "chevrons-right" %}</a>
</p>
</article>
{% endwith %}
{% endwith %}