{#if isCollectionModalOpen} linkCollection(e)} on:unlink={(e) => removeFromCollection(e)} on:close={() => (isCollectionModalOpen = false)} linkedCollectionList={adventure.collections} /> {/if} {#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteAdventure} /> {/if} {adventure.is_visited ? $t('adventures.visited') : $t('adventures.planned')} {#if unlinked} {$t('adventures.out_of_range')} {/if} {#if adventure.is_public} {:else} {/if} {#if adventure.category} {adventure.category.display_name} {adventure.category.icon} {/if} {#if adventure.user} {#if adventure.user.profile_pic} {:else} {creatorInitials.toUpperCase()} {/if} {/if} goto(`/locations/${adventure.id}`)} class="text-xl font-bold text-left hover:text-primary transition-colors duration-200 line-clamp-2 group-hover:underline" > {adventure.name} {#if adventure.location} {adventure.location} {/if} {#if adventure.rating} {#each renderStars(adventure.rating) as filled} {#if filled} {:else} {/if} {/each} ({adventure.rating}/5) {/if} {#if adventure.visits.length > 0} {formatVisitCount()} {/if} {#if !readOnly} {#if type != 'link'} goto(`/locations/${adventure.id}`)} > {$t('adventures.open_details')} {#if (adventure.user && adventure.user.uuid == user?.uuid) || (collection && user && collection.shared_with?.includes(user.uuid)) || (collection && user && collection.user == user.uuid)} {$t('adventures.edit_location')} {#if user?.uuid == adventure.user?.uuid} (isCollectionModalOpen = true)} class="flex items-center gap-2" > {$t('collection.manage_collections')} {:else if collection && user && collection.user == user.uuid} removeFromCollection( new CustomEvent('unlink', { detail: collection.id }) )} class="flex items-center gap-2" > {$t('adventures.remove_from_collection')} {/if} {#if user.uuid == adventure.user?.uuid} (isWarningModalOpen = true)} > {$t('adventures.delete')} {/if} {/if} {:else} Link Adventure {/if} {/if}