{workspace.here}/{node.slug}
size
{formatBytes(file.size)}
type
{file.mime}
uploaded
{relative(node.created_at)}
{#if file.encrypted}
vault
{locked ? 'sealed, locked' : 'sealed, open'}
{/if}
{#if locked} {:else} {#if kind === 'markdown' && text !== null} {/if} {#if viewable} open {/if} download {/if}

{node.name}

{#key `${file.url}:${locked}`} {#if locked}

sealed in the vault — to open it.

{:else if kind === 'image'} {node.name} {:else if kind === 'video'} {:else if kind === 'audio'} {:else if kind === 'pdf'} {:else if kind === 'cert'} {:else if text !== null} {#if kind === 'markdown' && !source}
{@html html}
{:else if kind === 'table'}
{#each table[0] ?? [] as cell, j (j)}{/each} {#each table.slice(1) as row, i (i)} {#each row as cell, j (j)}{/each} {/each}
{cell}
{cell}
{#if table.length === TABLE_ROWS}

the first {TABLE_ROWS} rows — download it for the rest.

{/if} {:else}
{#each lines as line, i (i)}{line}
{/each}
{/if} {#if file.size > TEXT_PREVIEW}

the first {formatBytes(TEXT_PREVIEW)} of {formatBytes(file.size)} — download it for the rest.

{/if} {:else}

no preview for {file.mime} — {#if viewable}open it or{/if} download it.

{/if} {/key}