{#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteTransportation} /> {/if} {transportation.name} {$t(`transportation.modes.${transportation.type}`) + ' ' + getTransportationIcon(transportation.type)} {#if transportation.type == 'plane' && transportation.flight_number} {transportation.flight_number} {/if} {#if unlinked} {$t('adventures.out_of_range')} {/if} {#if transportation.from_location} {$t('adventures.from')}: {transportation.from_location} {/if} {#if transportation.date} {$t('adventures.start')}: {new Date(transportation.date).toLocaleString()} {/if} {#if transportation.to_location} {$t('adventures.to')}: {transportation.to_location} {/if} {#if transportation.end_date} {$t('adventures.end')}: {new Date(transportation.end_date).toLocaleString()} {/if} {#if transportation.user_id == user?.uuid || (collection && user && collection.shared_with && collection.shared_with.includes(user.uuid))} {$t('transportation.edit')} (isWarningModalOpen = true)} class="btn btn-secondary btn-sm flex items-center gap-1" title="Delete" > {$t('adventures.delete')} {/if}
{transportation.from_location}
{new Date(transportation.date).toLocaleString()}
{transportation.to_location}
{new Date(transportation.end_date).toLocaleString()}