{#if loading}

Loading storage…

{:else}
{#if usage}
{#if usage.limit_bytes >= 0} {formatBytes(usage.used_bytes)} used of {formatBytes(usage.limit_bytes)} ({usagePercent.toFixed(1)}%) {:else} {formatBytes(usage.used_bytes)} used (unlimited) {/if} {#if usage.override_active} custom override {/if}
{#if usage.limit_bytes >= 0}
{/if} {#if usage.override_active && usage.plan}
Plan: {usage.plan} — admin override active
{/if} {:else}

Unable to load usage info.

{/if}
{#if total === 0}

No attachments yet — paste or drag a file into any item to upload one.

{:else}
{#each attachments as att (att.id)}
{#if isImage(att.mime_type)} {att.filename} {:else} {/if}
{att.filename}
{formatBytes(att.size_bytes)} · {att.mime_type} · {formatDate(att.created_at)}
{#if att.item_title && att.collection_slug} in {#if att.item_deleted} [[{att.item_title}]] deleted {:else} [[{att.item_title}]] {/if} {:else} Unattached {/if}
{/each}
Showing {pageStart}–{pageEnd} of {total}
{/if} {/if}