X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c9687b102bb6f544a034dc4d508bf0ae4a5fc221..2ba00544d30017ad30570011b1a2bcc6a8da73a7:/src/components/DetailsOneRow.svelte
diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte
index b038313..8ba3769 100644
--- a/src/components/DetailsOneRow.svelte
+++ b/src/components/DetailsOneRow.svelte
@@ -1,16 +1,21 @@
-
+
{#if addressLine.localname}
{addressLine.localname}
{:else}
@@ -18,21 +23,37 @@
{/if}
|
{formatPlaceType(addressLine)} |
+
{@html osmLink(addressLine)} |
{addressLine.rank_address} |
{formatAdminLevel(addressLine.admin_level)} |
+
{@html formatDistance(addressLine.distance, bDistanceInMeters)} |
- {#if addressLine.osm_id}details{/if} |
+
+ {#if addressLine.osm_id}
+
+ details
+
+ {:else if !reverse_only && addressLine.type.match(/^country/)}
+
+ search by name
+
+ {:else if !reverse_only && addressLine.type === 'postcode'}
+
+ search by name
+
+ {/if}
+ |