From 6e28e5234ef31f3d11312f71404629fdc2cf2e96 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Tue, 21 Jan 2025 19:33:48 -0500 Subject: [PATCH] feat: enhance attachment handling with new localization strings and GPX upload tips --- .../src/lib/components/AdventureModal.svelte | 4 ++-- .../src/lib/components/AttachmentCard.svelte | 16 +++++++++------- frontend/src/locales/de.json | 15 ++++++++++++++- frontend/src/locales/en.json | 2 ++ frontend/src/locales/es.json | 15 ++++++++++++++- frontend/src/locales/fr.json | 15 ++++++++++++++- frontend/src/locales/it.json | 15 ++++++++++++++- frontend/src/locales/nl.json | 15 ++++++++++++++- frontend/src/locales/pl.json | 15 ++++++++++++++- frontend/src/locales/sv.json | 15 ++++++++++++++- frontend/src/locales/zh.json | 15 ++++++++++++++- frontend/src/routes/adventures/[id]/+page.svelte | 12 +++++++++++- frontend/src/routes/search/+page.svelte | 7 ++++++- 13 files changed, 142 insertions(+), 19 deletions(-) diff --git a/frontend/src/lib/components/AdventureModal.svelte b/frontend/src/lib/components/AdventureModal.svelte index 9e31453..e734744 100644 --- a/frontend/src/lib/components/AdventureModal.svelte +++ b/frontend/src/lib/components/AdventureModal.svelte @@ -997,7 +997,7 @@ it would also work to just use on:click on the MapLibre component itself. --> @@ -1014,7 +1014,7 @@ it would also work to just use on:click on the MapLibre component itself. --> + {#if !allowEdit} + + {/if} {#if allowEdit} + + +
{#if adventure.attachments && adventure.attachments.length > 0}
diff --git a/frontend/src/routes/search/+page.svelte b/frontend/src/routes/search/+page.svelte index d498aa1..1e96cbb 100644 --- a/frontend/src/routes/search/+page.svelte +++ b/frontend/src/routes/search/+page.svelte @@ -42,7 +42,7 @@

Adventures

{#each adventures as adventure} - + {/each}
{/if} @@ -97,3 +97,8 @@ {$t('adventures.no_results')}

{/if} + + + Search: {query} + +