{#if isCollectionModalOpen} (isCollectionModalOpen = false)} /> {/if} {#if adventure.image && adventure.image !== ''} {:else} {/if} {adventure.name} {#if adventure.type == 'visited' && user?.pk == adventure.user_id} Visited {:else if user?.pk == adventure.user_id && adventure.type == 'planned'} Planned {:else if user?.pk == adventure.user_id && adventure.type == 'lodging'} Lodging {/if} {adventure.is_public ? 'Public' : 'Private'} {#if adventure.location && adventure.location !== ''} {adventure.location} {/if} {#if adventure.date && adventure.date !== ''} {new Date(adventure.date).toLocaleDateString('en-US', { timeZone: 'UTC' })} {/if} {#if adventure.activity_types && adventure.activity_types.length > 0} {#each activityTypes as activity} {activity} {/each} {/if} {#if type != 'link'} {#if user?.pk == adventure.user_id} goto(`/adventures/${adventure.id}`)} >Open Details Edit Adventure {#if adventure.type == 'visited'} Change to Plan {/if} {#if adventure.type == 'planned'} Mark Visited {/if} {#if (adventure.collection && adventure.type == 'visited') || adventure.type == 'planned'} Remove from Collection {/if} {#if adventure.collection && adventure.type == 'lodging'} Change to Visit {/if} {#if !adventure.collection} (isCollectionModalOpen = true)} >Add to Collection {/if} Delete {:else} goto(`/adventures/${adventure.id}`)} > {/if} {/if} {#if type == 'link'} {/if}
{adventure.location}
{new Date(adventure.date).toLocaleDateString('en-US', { timeZone: 'UTC' })}