{t('ballots.title')}

{t('ballots.intro')}

{t('ballots.mine')}

{#if !session.me}

{t('ballots.signin')}

{:else if data.error} data.load()} /> {:else if data.value}
    {#each data.value.ballots as b (b.id)}
  • {i18n.date(b.createdAt)} · {titleOf(b.doc.title)} · {i18n.plural('ballots.lines', b.lines)}

    {standing(b)}{#if b.block !== null} · {t('ballots.block', { n: i18n.number(b.block) })}{/if}

    {b.comment} {t('ballots.receipt')}
  • {:else}
  • {t('ballots.none')}
  • {/each}
{/if}

{t('ballots.verify.title')}

{t('ballots.verify.intro')}

{#if check?.kind === 'ok'}

{t('ballots.verify.ok')}

{check.comment}
    {#each check.lines as l (l.proposalId)}
  • {t('ballots.verify.line', { choice: t(`vote.choice.${l.choice}`), version: l.proposalId, revision: i18n.number(l.revision) })} {#if l.article || l.title}{t('ballots.verify.line.label', { label: [l.article, l.title].filter(Boolean).join(' · ') })}{/if}
  • {/each}

{check.block !== null ? t('ballots.verify.where.block', { block: i18n.number(check.block) }) : t('ballots.verify.where')}

{:else if check?.kind === 'mismatch'}

{t('ballots.verify.computed')} {check.computed}

{t('ballots.verify.expected')} {check.comment}

{:else if check?.kind === 'unreadable'} {/if}