X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/85f2de514d8d287b28b4cf833c1a97aeabd832a2..HEAD:/src/components/LastUpdated.svelte diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index f269903..0d7768d 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -1,47 +1,75 @@ -
-
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) +
+