diff --git a/apps/mana/apps/web/src/lib/modules/todo/ListView.svelte b/apps/mana/apps/web/src/lib/modules/todo/ListView.svelte index b6adceb2f..85b89a831 100644 --- a/apps/mana/apps/web/src/lib/modules/todo/ListView.svelte +++ b/apps/mana/apps/web/src/lib/modules/todo/ListView.svelte @@ -1,28 +1,21 @@ -
-
- {stats.total} gesamt - {stats.today} heute - 0}>{stats.overdue} überfällig -
- -
- {#each ['inbox', 'today', 'overdue'] as f} - - {/each} -
- -
{ - e.preventDefault(); - addTask(); - }} - class="quick-add" - > - - -
- - - +
- {#each filtered() as task (task.id)} + {#each sorted as task, i (task.id)} {@const taskTagIds = getTaskTagIds(task)} {@const taskTags = getTagsByIds(allTags, taskTagIds)} - + +
+ {#each taskTags as tag (tag.id)} + + {/each} + {#if badge} + {badge.label} + {/if} + {#if task.isCompleted && task.completedAt} + {new Date(task.completedAt).toLocaleTimeString('de', { + hour: '2-digit', + minute: '2-digit', + })} Uhr, {new Date(task.completedAt).toLocaleDateString('de', { + day: 'numeric', + month: 'short', + })} {/if}
- +
{/each} - {#if filtered().length === 0} + {#if sorted.length === 0}

Keine Aufgaben

{/if}
+ +