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

{p.kind === 'text' ? 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.author}{t('panel.by', { name: p.author })}{: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} {/if}

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

{#if p.evaluation}

{t('tally.required', { n: p.evaluation.required })}

{p.evaluation.reached ? t('tally.reached') : i18n.plural('tally.missing', p.evaluation.missing)}

{/if}

{t(`inertia.${p.votedAtInertia}`)}

{#if p.blocked}

{t('vote.blocked')}

{/if} {#if votable} {#if p.myVoteStale}

{t('vote.stale')}

{/if}
{t('vote.yours')} {#if p.myVote}{/if}

{t('vote.private')}

{:else}

{t('vote.closed')}

{/if}
{#if p.kind !== 'inertia' && unit}

{t('inertia.title')} · {t(`inertia.level.${unit.inertia}`)}

{t('inertia.explain')}

{#each inertiaOpen as ip (ip.id)} {/each}
{t('inertia.change')}

{t('inertia.change.note', { level: t(`inertia.level.${({ low: 'standard', standard: 'high', high: 'max', max: 'max' } as const)[unit.inertia]}`) })}

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

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

{#if typoSubstantive}

{t('typo.substantive')}

{/if}
{/if} {#if lang !== source && p.kind === 'text'}
{t('translate.title', { lang: lang.toUpperCase() })}

{t('translate.note')}

{/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}

    {#if h.diff}{/if}
  2. {/each}
{/if} {#if p.kind === 'text' && votable}

{t('signal.title')}

{#each detail.signals as s (s.id)}

{s.other?.title ?? ''} — {s.reason}

{t('signal.by', { name: s.author })} · {i18n.date(s.at)} {#if s.liftedAt} · {s.liftedBy === 'revision' ? t('signal.lifted.revision') : t('signal.lifted')}{/if}

{#if s.mine && !s.liftedAt}{/if}
{:else}

{t('signal.none')}

{/each}
{t('signal.add')}

{t('signal.note')}

{/if} {#if p.mine && p.status === 'open'} {/if} {#if error}{/if}
{:else if error} {:else}

{t('common.loading')}

{/if}