{#if detail && p && text && view}
{p.status === 'in_force' ? t('panel.inforce') : t('panel.proposal')}

{p.kind === 'text' || p.kind === 'title' ? text.title : titleOf(p, unit)}

{#if p.seedMinimal}{t('doc.seed')} {:else if p.confirmedAt}{t('doc.confirmed')} {:else if p.enteredAt && p.status === 'in_force'}{t('doc.adopted', { date: i18n.date(p.enteredAt) })}{/if} {#if p.blocked}{t('deep.held')}{/if} {#if p.author}{t('panel.by', { name: p.author })}{#if p.authorInvited} · {t('author.invited')}{/if}{:else if p.origin === 'seed'}{t('panel.seed.origin')}{/if}

{#if p.kind === 'text'} {#if detail.diff && showDiff} {:else} {/if} {#if detail.diff} {/if} {#if text.translated}

{t('doc.lang.translation')}{#if text.stale} · {t('doc.lang.stale')}{/if}

{/if} {:else if p.kind === 'remove' && detail.inForce} {:else if p.kind === 'order'} {@const order = doc.proposal(p.id)?.order}
    {#each order?.ids ?? [] as id (id)}
  1. {doc.articleTitle(id, lang, source)}
  2. {/each}
{#each orderNote({ ...p, order }) as note (note)}

{note}

{/each}

{t('module.order.rule')}

{:else if p.kind === 'title'}

{t('module.title.name')} · {inertiaBadge(detail.unit.inertia)}{#if text.translated} · {t('doc.lang.translation')}{#if text.stale} · {t('doc.lang.stale')}{/if}{/if}

{/if} {#if live}

{t('tally.short', { for: p.tally.for, against: p.tally.against })} ·

{/if} {#if (p.kind === 'text' || p.kind === 'title') && live}
{p.mine && p.status === 'open' ? t('propose.edit') : t('typo.title')}

{p.mine && p.status === 'open' ? t('propose.rule') : t('typo.note')}

{#if p.kind === 'text'}{/if} {#if typoSubstantive}

{t('typo.substantive')}

{#if p.kind === 'text'}{/if} {/if}
{/if} {#if detail.typos.length}

{t('typo.list')}

    {#each detail.typos as fix (fix.id)}
  • {t('typo.by', { name: fix.writer ?? '' })}{#if fix.writerInvited} · {t('author.invited')}{/if} · {i18n.date(fix.at)}

    {typoState(fix)}

    {#if fix.gestures.length}
    {#each fix.gestures as g (g)} {/each}
    {/if}
  • {/each}
{/if} {#if lang !== source && (p.kind === 'text' || p.kind === 'title')}
{t('translate.title', { lang: lang.toUpperCase() })}

{t('translate.note')}

{#if p.kind === 'text'}{/if}
{/if} {#if detail.history.length > 1}

{t('history.title')}

    {#each detail.history.slice(1) as h (h.at + h.revision)}
  1. {t(`history.${h.kind}`)} · {i18n.date(h.at)}{#if h.author} · {t('history.by', { name: h.author })}{#if h.authorInvited} · {t('author.invited')}{/if}{/if} {#if h.typo?.deadline} · {t('history.typo.deadline')}{:else if h.typo?.answeredBy} · {t('history.typo.validated', { name: h.typo.answeredBy })}{/if}

    {#if h.diff}{/if}
  2. {/each}
{/if} {#if p.kind === 'text' && (live || detail.objections.length)}

{t('objection.title')}

{#each detail.objections as o (o.id)} {@const standing = o.phase !== 'lifted'}

{t(`objection.kind.${o.kind}`)} {t(`objection.says.${o.kind}`, { held: o.heldVersion?.title ?? '', other: o.other.title ?? '' })}

{o.reason}

{t('objection.by', { name: o.objector ?? '' })}{#if o.objectorInvited} · {t('author.invited')}{/if} · {i18n.date(o.at)} · {stateOf(o)}{#if standing && o.answer} · {t(`objection.answer.${o.answer}`)}{/if}

{#if standing && o.held}

{t('objection.held.here')}

{/if} {#if standing}
{#if o.iAnswer && !o.mine && o.phase === 'author'} {/if} {#if o.canLift} {/if} {#if o.canReiterate} {/if}
{/if}
{:else}

{t('objection.none')}

{/each} {#if live && objectionTargets.length}
{t('objection.add')}

{t('objection.note')}

{#each ['redit', 'contredit'] as const as k (k)} {/each}
{/if}
{/if} {#if p.mine && p.status === 'open'} {/if} {#if error}{/if}
{:else if error} {:else}

{t('common.loading')}

{/if}