1 <span *ngIf="metadataSyncInfo === 'no sync (zone is master)'">
3 <li><b>Status:</b></li>
7 <span *ngIf="metadataSyncInfo !== 'no sync (zone is master)'">
8 <ng-template #metadataSyncPopover>
9 <ul class="text-center">
10 <li><h5><b>Metadata Sync Status:</b></h5></li>
11 <li *ngFor="let status of metadataSyncInfo.fullSyncStatus">
12 <span *ngIf="!status?.includes(metadataSyncInfo.syncstatus) && !status?.includes('failed') && !status?.includes('error')">
13 <span *ngIf="status?.includes(':')">
14 <b>{{ status.split(':')[0] | titlecase }}</b>:{{ status.split(':')[1] | titlecase}}
16 <span *ngIf="!status?.includes(':')">
17 <b>{{ status | titlecase }}</b>
20 <span *ngIf="status?.includes('failed') || status?.includes('error')">
21 {{ status | titlecase }}
27 <ng-template #upToDateTpl>
28 <li class="badge badge-success">Up to Date</li>
30 <ng-template #showMetadataStatus>
31 <a *ngIf="metadataSyncInfo.syncstatus !== 'Not Syncing From Zone'"
32 class="lead text-primary"
33 [ngbPopover]="metadataSyncPopover"
35 popoverClass="rgw-overview-card-popover"
36 i18n>{{ metadataSyncInfo.syncstatus | titlecase }}</a>
37 <a *ngIf="metadataSyncInfo.syncstatus === 'Not Syncing From Zone'"
38 class="lead text-primary"
39 [ngbPopover]="metadataSyncPopover"
41 popoverClass="rgw-overview-card-popover"
44 <li><b>Status:</b></li>
45 <li *ngIf="metadataSyncInfo.syncstatus?.includes('failed') || metadataSyncInfo.syncstatus?.includes('error'); else showMetadataStatus">
46 <i class="text-danger"
47 [ngClass]="[icons.danger]"></i>
48 <a class="lead text-danger"
49 [ngbPopover]="metadataSyncPopover"
51 popoverClass="rgw-overview-card-popover"
53 <li class="mt-4 fw-bold">
56 <li class="badge badge-info"
57 *ngIf="metadataSyncInfo.timestamp; else upToDateTpl">{{ metadataSyncInfo.timestamp | relativeDate }}</li>