{#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.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'}
{#if adventure.user_id == user?.uuid || (collection && user && collection.shared_with?.includes(user.uuid))} {/if}
{:else} {/if}
{/if}