{#if isDailyLog} selectedDate = d} /> — kein Jour-fix — {#each $meetingContexts ?? [] as ctx} {ctx.name} {/each} entryText = md} /> + {selectedLinkedContextId ? 'Thema hinzufügen' : 'Notiz hinzufügen'} {#if !selectedLinkedContextId} Wiedervorlage {/if} {#if filteredEntries.length > 0} {selectedDate} {#each filteredEntries as entry (entry.id)} {#if editingId === entry.id} editBody = md} /> Speichern Abbrechen {:else} {@const lines = entry.text.split('\n')} {@const title = lines[0]} {@const body = lines.slice(1).join('\n').trim()} {formatTime(entry.updatedAt)} {title} {#if entry.linkedContextId} {contextNameMap().get(entry.linkedContextId) ?? entry.linkedContextId} {/if} {#if body} {/if} startEdit(entry)} title="Bearbeiten" >✎ handleDelete(entry.id)} title="Löschen" >× {/if} {/each} {:else} Keine Einträge für {selectedDate}. {/if} {:else} {#each meetingByDate() as [date, items]} {date} {#each items as entry} {entry.topicTitle} {#if entry.isLinked} Journal {/if} {/each} {:else} Keine Einträge. {/each} {/if} {#if confirmDeleteId} confirmDeleteId = null} /> {/if}