fix: regroup soon tasks in my tasks view

This commit is contained in:
2026-04-15 13:47:13 +02:00
parent ce7a371caf
commit dba87ebcf2
2 changed files with 18 additions and 31 deletions

View File

@@ -46,41 +46,13 @@
<section class="stack">
<div class="section-heading">
<h2>Bald fällig</h2>
<span class="section-heading__count">{{ sections.due_today|length }}</span>
<span class="section-heading__count">{{ soon_tasks|length }}</span>
</div>
<div class="task-grid">
{% for task in sections.due_today %}
{% for task in soon_tasks %}
{{ task_card(task, current_user) }}
{% else %}
<div class="empty-state">Heute ist gerade nichts mehr auf Kante.</div>
{% endfor %}
</div>
</section>
<section class="stack">
<div class="section-heading">
<h2>Morgen fällig</h2>
<span class="section-heading__count">{{ sections.due_tomorrow|length }}</span>
</div>
<div class="task-grid">
{% for task in sections.due_tomorrow %}
{{ task_card(task, current_user) }}
{% else %}
<div class="empty-state">Für morgen sieht es gerade entspannt aus.</div>
{% endfor %}
</div>
</section>
<section class="stack">
<div class="section-heading">
<h2>Übermorgen fällig</h2>
<span class="section-heading__count">{{ sections.due_day_after_tomorrow|length }}</span>
</div>
<div class="task-grid">
{% for task in sections.due_day_after_tomorrow %}
{{ task_card(task, current_user) }}
{% else %}
<div class="empty-state">Auch übermorgen ist noch nichts Drängendes drin.</div>
<div class="empty-state">Gerade ist nichts bald fällig. Sehr stark.</div>
{% endfor %}
</div>
</section>