{#if show && session} {session.title || $i18n.t('Compare revision')} {#if session.path}{session.path}{/if} {#if !comparing} (comparing = true)} >{$i18n.t('Compare')} {/if} {#if comparing} {loading ? $i18n.t('Loading...') : chunkCount ? $i18n.t('Change {{current}} of {{total}}', { current: activeChunk + 1, total: chunkCount }) : $i18n.t('No differences')} {#if approximate}≈{/if} reveal(activeChunk - 1)}>↑ reveal(activeChunk + 1)}>↓ copy('to-working')}>← {$i18n.t('Working copy')} copy('to-proposal')}>{$i18n.t('Proposed revision')} → {/if} {#if error}{error}{/if} {#each ['a', 'b'] as side} {@const lines = (side === 'a' ? working : proposal).split('\n').length} {side === 'a' ? $i18n.t('Working copy') : $i18n.t('Proposed revision')} {#if comparing && !loading} {side === 'a' ? '−' : '+'} {side === 'a' ? $i18n.t( lineChanges.removed === 1 ? '{{count}} removal' : '{{count}} removals', { count: lineChanges.removed } ) : $i18n.t( lineChanges.added === 1 ? '{{count}} addition' : '{{count}} additions', { count: lineChanges.added } )} {/if} {$i18n.t(lines === 1 ? '{{count}} line' : '{{count}} lines', { count: lines })} copyPane(side === 'a' ? 'a' : 'b')} > {copied?.side === side && copied.text === (side === 'a' ? working : proposal) ? $i18n.t('Copied') : $i18n.t('Copy')} {/each} {#if comparing} {:else} {/if} {#if comparing} {#each overview as range, index} {/each} {/if} {/if}
{session.path}
{error}