2 <ng-template #upToDateTpl>
3 <li class="badge badge-success"
6 <cds-toggletip [dropShadow]="true"
8 <div cdsToggletipButton
10 <ng-template #showStatus>
11 <a *ngIf="zone.syncstatus !== 'Not Syncing From Zone'"
12 class="lead text-primary"
13 i18n>{{ zone.syncstatus | titlecase }}</a>
14 <a *ngIf="zone.syncstatus === 'Not Syncing From Zone'"
15 class="lead text-primary"
18 <li><b>Status:</b></li>
19 <li *ngIf="zone.syncstatus?.includes('failed') || zone.syncstatus?.includes('error'); else showStatus">
20 <svg [cdsIcon]="icons.danger"
22 class="cds-danger-color"></svg>
23 <a class="lead text-danger"
27 <div cdsToggletipContent>
28 <ul class="text-center">
29 <li><h5><b i18n>Sync Status:</b></h5></li>
30 <li *ngFor="let status of zone.fullSyncStatus">
31 <span *ngIf="!status?.includes(zone.name) && !status?.includes(zone.syncstatus) && !status?.includes('failed') && !status?.includes('error')">
32 <span *ngIf="status?.includes(':')">
33 <b>{{ status.split(': ')[0] | titlecase }}</b>:{{ status.split(': ')[1] | titlecase}}
35 <span *ngIf="!status?.includes(':')">
36 <b>{{ status | titlecase }}</b>
39 <span *ngIf="status?.includes('failed') || status?.includes('error')">
40 {{ status | titlecase }}
46 <li class="mt-4 fw-bold"
50 <li class="badge badge-info"
51 *ngIf="zone.timestamp; else upToDateTpl">{{ zone.timestamp | relativeDate }}</li>