diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte index a555796..b1fbaaf 100644 --- a/frontend/src/routes/collections/[id]/+page.svelte +++ b/frontend/src/routes/collections/[id]/+page.svelte @@ -425,7 +425,8 @@ on:typeChange={changeType} /> {/each} - {:else if dayTransportations.length > 0} + {/if} + {#if dayTransportations.length > 0} {#each dayTransportations as transportation} {/each} - {:else} + {/if} + {#if dayAdventures.length == 0 && dayTransportations.length == 0}

No adventures or transportaions planned for this day.

{/if} {/each} -
- - - + - {#each adventures as adventure} - {#if adventure.longitude && adventure.latitude} - - -
{adventure.name}
-

- {adventure.type.charAt(0).toUpperCase() + adventure.type.slice(1)} -

-

- {adventure.date - ? new Date(adventure.date).toLocaleDateString('en-US', { timeZone: 'UTC' }) - : ''} -

-
-
- {/if} - {/each} -
-
+ {#each adventures as adventure} + {#if adventure.longitude && adventure.latitude} + + +
{adventure.name}
+

+ {adventure.type.charAt(0).toUpperCase() + adventure.type.slice(1)} +

+

+ {adventure.date + ? new Date(adventure.date).toLocaleDateString('en-US', { timeZone: 'UTC' }) + : ''} +

+
+
+ {/if} + {/each} + {/if} {/if}