{$t('file_dashboard.storage_usage', { used: (data.storage_usage.used / (1024 * 1024)).toFixed(2), total: (data.storage_usage.limit / (1024 * 1024)).toFixed(0), percent: ((data.storage_usage.used / data.storage_usage.limit) * 100).toFixed(0) })}

{#each images as image}
{image.alt_text

{$t('file_dashboard.size', { size: (image.size / (1024 * 1024)).toFixed(2) })}

{$t('file_dashboard.caption', { caption: image.alt_text ?? $t('file_dashboard.missing') })}

{$t('file_dashboard.filename', { filename: image.filename ?? $t('file_dashboard.missing') })}

{$t('file_dashboard.uploaded', { date: new Date(image.uploaded_at).toLocaleString() })}

{$t('file_dashboard.imported', { yes_or_no: image.imported ? $t('words.yes') : $t('words.no') })}

{ edit_popup = image; }} >{$t('file_dashboard.edit_details')} {#if image.quiztivities.length === 0 && image.quizzes.length === 0} { delete_image(image.id); }}>{$t('file_dashboard.delete_image')} {/if}
{/each}
{#if edit_popup}

{$t('file_dashboard.edit_the_image')}

{$t('words.save')}
{/if}