{#if $cur_tab_doc_can_edit}
{ fileinput.click(); }} class="text-white bg-primary-700 hover:bg-primary-700/90 focus:ring-4 focus:ring-primary-700/50 font-medium rounded-lg text-lg px-5 py-2.5 text-center inline-flex items-center dark:focus:ring-primary-700/55 mr-2 mb-2" >
{$t("doc.file.upload")}
onFileSelected(e)} bind:this={fileinput} />
{/if} {#if upload_progress !== null}
{/if} {#if commits} {#await commits.load()}
{$t("connectivity.loading")}...
{:then} {#each $commits.files as file}
{#await get_blob(file, true)}
{:then url} {#await isImage(url) then is} {#if is}
{/if} {/await}
{file.name}
{#if url === false}
{$t("errors.cannot_load_this_file")}
{:else if prepare_url(file.nuri)}
download(file)}>
{$t("doc.file.download")}
{/if} {/await} {/each} {/await} {/if}