{#if adventure.type == 'visited'}
Visited
{:else if adventure.type == 'planned'}
Planned
{:else if adventure.type == 'lodging'}
Lodging
{:else if adventure.type == 'dining'}
Dining
{/if}
{adventure.is_public ? 'Public' : 'Private'}
{#if adventure.location && adventure.location !== ''}
{/if}
{#if adventure.date && adventure.date !== ''}
{new Date(adventure.date).toLocaleDateString(undefined, {
timeZone: 'UTC'
})}{adventure.end_date && adventure.end_date !== ''
? ' - ' +
new Date(adventure.end_date).toLocaleDateString(undefined, { timeZone: 'UTC' })
: ''}
{/if}
{#if adventure.activity_types && adventure.activity_types.length > 0}
{#each activityTypes as activity}
{activity}
{/each}
{/if}
{#if type != 'link'}
{#if adventure.user_id == user?.pk || (collection && user && collection.shared_with.includes(user.uuid))}
{#if adventure.type == 'visited' && user?.pk == adventure.user_id}
{/if}
{#if adventure.type == 'planned' && user?.pk == adventure.user_id}
{/if}
{#if adventure.collection && (adventure.type == 'visited' || adventure.type == 'planned') && user?.pk == adventure.user_id}
{/if}
{#if (adventure.collection && adventure.type == 'lodging') || adventure.type == 'dining'}
{/if}
{#if !adventure.collection}
{/if}
{:else}
{/if}
{/if}
{#if type == 'link'}
{/if}