-<div id="last-updated">
- <div id="loading">loading...</div>
- {#if last_updated_date}
- {#if last_api_request_url}
- <div id="api-request">
- Data from <a href="{last_api_request_url}">API request</a>
- <span id="api-request-debug">
- (<a href="{last_api_request_url}&debug=1">debug output</a>)
- </span>
- </div>
- {/if}
- Data last updated: <span id="data-date">{last_updated_date}</span>
- {/if}
+<div id="last-updated" class="container-fluid py-2 px-4 mb-3">
+ <div id="loading" class="py-2 px-4">
+ <div class="spinner-border spinner-border-sm text-primary me-1" role="status"></div>
+ Loading data from API ...
+ </div>
+ <div class="row">
+ <div class="col-sm-6">
+ {#if last_api_request_url}
+ <div id="api-request">
+ Data from <a href="{last_api_request_url}">API request</a>
+ <span id="api-request-debug">
+ (<a href="{last_api_request_url}&debug=1">debug output</a>)
+ </span>
+ </div>
+ {/if}
+ </div>
+ <div class="col-sm-6 text-end">
+ {#if last_updated_date}
+ Data last updated:
+ <abbr id="data-date" title="{last_updated_date} (UTC timezone)">
+ {timeago.format(new Date(last_updated_date))}
+ </abbr>
+ {/if}
+ (<PageLink page="status">Details</PageLink>)
+ </div>
+ </div>