]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
9b489e124bfdb7ee485edbed1b8cffd0805a4a06
[ceph-ci.git] /
1 <span *ngIf="metadataSyncInfo === 'no sync (zone is master)'">
2   <ul class="me-2">
3     <li><b>Status:</b></li>
4     <li>No Sync</li>
5   </ul>
6 </span>
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}}
15           </span>
16           <span *ngIf="!status?.includes(':')">
17             <b>{{ status | titlecase }}</b>
18           </span>
19         </span>
20         <span *ngIf="status?.includes('failed') || status?.includes('error')">
21             {{ status | titlecase }}
22         </span>
23       </li>
24     </ul>
25   </ng-template>
26   <ul class="me-2">
27     <ng-template #upToDateTpl>
28       <li class="badge badge-success">Up to Date</li>
29     </ng-template>
30     <ng-template #showMetadataStatus>
31       <a *ngIf="metadataSyncInfo.syncstatus !== 'Not Syncing From Zone'"
32          class="lead text-primary"
33          [ngbPopover]="metadataSyncPopover"
34          placement="top"
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"
40          placement="top"
41          popoverClass="rgw-overview-card-popover"
42          i18n>Not Syncing</a>
43     </ng-template>
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"
50          placement="top"
51          popoverClass="rgw-overview-card-popover"
52          i18n>Error</a></li>
53     <li class="mt-4 fw-bold">
54       Last Synced:
55     </li>
56     <li class="badge badge-info"
57         *ngIf="metadataSyncInfo.timestamp; else upToDateTpl">{{ metadataSyncInfo.timestamp | relativeDate }}</li>
58   </ul>
59 </span>