X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/85f2de514d8d287b28b4cf833c1a97aeabd832a2..2a34127a122a0d415a1cabb8de8e80a91b3dc017:/src/components/LastUpdated.svelte diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index f269903..08be5d9 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -1,47 +1,73 @@ -
-
loading...
- {#if last_updated_date} - {#if last_api_request_url} -
- Data from API request - - (debug output) - -
- {/if} - Data last updated: {last_updated_date} - {/if} +
+
+
+ Loading data from API ... +
+
+
+ {#if last_api_request_url} +
+ Data from API request + + (debug output) + +
+ {/if} +
+
+ {#if last_updated_date} + Data last updated: + {timeago.format(new Date(last_updated_date))} + {/if} + (Details) +
+