{#if toolbar}
(chosen = 'rendered')} > {parsed.natural === 'diff' ? 'diff' : 'rendered'}
(chosen = 'raw')} > {parsed.natural === 'code' ? 'code' : 'raw'}
{#if mode === 'code' || mode === 'diff'}
(prefs.wrapCode = !prefs.wrapCode)}>wrap
{/if}
{copied ? 'copied' : 'copy'}
{/if}
{#if problem}
(。•︿•。) couldn't load display: {problem}
{:else if loading}
(・ω・)ノ loading display…
{:else if !detail}
nothing displayed
{:else if mode === 'diff'} {#if parsed.header}
{/if} {#each parsed.files as file, partIndex (`${file.path}:${partIndex}`)}
{#if parsed.files.length > 1}
{file.path.split('/').pop()}
{file.path.split('/').slice(0, -1).join('/')}
+{file.added}
−{file.removed}
{/if}
oncomment(file.path, partIndex, range))} />
{/each} {:else if mode === 'code'} {#if parsed.header && chosen !== 'raw'}
{/if}
{:else} {#if parsed.header}
{parsed.header}
{/if}
{/if}