{#snippet personCard(person: Person, relationLabel: string | null = null)} {getFullName(person)} {#if relationLabel} {/if} {/snippet}

{m.doc_details_section_details()}

{m.doc_details_field_date()}
{formattedDate}
{m.form_label_location()}
{displayLocation}
{m.doc_details_field_status()}
{statusLabel}

{m.doc_details_section_persons()}

{#if hasPersons}
{#if sender}

{m.doc_details_field_sender()}

{@render personCard(sender, inferredRelationship?.labelFromA ?? null)}
{/if} {#if receivers.length > 0}

{m.doc_details_field_receivers()}

{#each displayedReceivers as receiver, i (receiver.id)} {@render personCard( receiver, // Badge only shown when there is exactly one receiver — with multiple // receivers the inferred label is computed from the sender's viewpoint // and cannot be attributed to a specific receiver. i === 0 && receivers.length === 1 ? (inferredRelationship?.labelFromB ?? null) : null )} {/each}
{#if hiddenReceiverCount > 0 && !showAllReceivers} {/if}
{/if}
{:else}

{m.doc_details_no_persons()}

{/if}

{m.doc_details_section_tags()}

{#if hasTags}
{#each tags as tag (tag.id)} {tag.name} {/each}
{:else}

{m.doc_details_no_tags()}

{/if}
{#if showGeschichtenColumn}

{m.geschichten_card_heading()}

{#if canBlogWrite && documentId} {m.geschichten_card_attach_action()} {/if}
{#if geschichten.length === 0}

{:else}
    {#each visibleGeschichten as g (g.id)}
  • {g.title}

    {formatGeschichteAuthor(g)} {#if formatGeschichteDate(g)}· {formatGeschichteDate(g)}{/if}

  • {/each}
{#if hasGeschichtenOverflow && documentId} {m.geschichten_card_show_all()} → {/if} {/if}
{/if}