{#if editMode} (editMode = false)} onimagechange={(path) => (recipeState = { ...recipeState, image_path: path })} /> {:else} {#snippet titleSlot()} {#if editingTitle} {:else} {title} {/if} {/snippet} {#snippet showActions()} Deine Bewertung: {#if data.avg_stars !== null} ⌀ {data.avg_stars.toFixed(1)} ({ratings.length}) {/if} (pulseFav = false)} > Favorit (pulseWish = false)} > {#if onMyWishlist} Auf Wunschliste {:else} Auf Wunschliste setzen {/if} window.print()}> Drucken Heute gekocht {#if cookingLog.length > 0} ({cookingLog.length}) {/if} {#if wakeLockEnabled} Bildschirm an {:else} Bildschirm aus {/if} (editMode = true)}> Bearbeiten Löschen {/snippet} {/if} Kommentare {#if comments.length === 0} Noch keine Kommentare. {/if} {#each comments as c (c.id)} {c.author} {c.text} {new Date(c.created_at).toLocaleString('de-DE')} {#if profileStore.active?.id === c.profile_id} void deleteComment(c.id)} > {/if} {/each} Kommentar speichern {#if cookingLog.length > 0} Kochjournal {#each cookingLog.slice(0, 20) as entry (entry.id)} {new Date(entry.cooked_at).toLocaleString('de-DE')} {/each} {/if}
Noch keine Kommentare.
Kommentare
{#if comments.length === 0}Noch keine Kommentare.
{/if}{#each comments as c (c.id)}-
{c.author}
{c.text}
{new Date(c.created_at).toLocaleString('de-DE')}
{#if profileStore.active?.id === c.profile_id}
{/if}
{/each}