{$t('adventures.attachment_management')}

{#if contentType === 'transportation'}

{$t('adventures.transportation_gpx_tip')}

{/if}

{$t('adventures.upload_attachment')}

{#if contentType === 'transportation'} {/if} {#if attachmentError}
{attachmentError}
{/if}
{#if attachments.length > 0}
{$t('adventures.current_attachments')}
{#each attachments as attachment (attachment.id)}
{#if attachmentToEdit?.id === attachment.id}
Editing
{:else}
{#if attachment.file} {attachment.name} {:else}
{attachment.name}
{/if}
{attachment.extension.toUpperCase()}
{#if attachment.file} {/if}
{/if}
{/each}
{:else}
{$t('adventures.no_attachments_uploaded_yet')}
{$t('adventures.upload_first_attachment')}
{/if}