]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/blob
5ec927071f8b3c588dd52161054eb65c6a16953e
[ceph-ci.git] /
1 <span *ngIf="metadataSyncInfo === 'no sync (zone is master)'">
2   <ul class="me-2">
3     <li><b i18n>Status:</b></li>
4     <li>No Sync</li>
5   </ul>
6 </span>
7 <span *ngIf="metadataSyncInfo !== 'no sync (zone is master)'">
8   <ul class="me-2">
9     <ng-template #upToDateTpl>
10       <li class="badge badge-success"
11           i18n>Up to Date</li>
12     </ng-template>
13     <cds-toggletip  [dropShadow]="true"
14                     [align]="align">
15       <div cdsToggletipButton
16            class="toggleTipBtn">
17         <ng-template #showMetadataStatus>
18           <a  *ngIf="metadataSyncInfo.syncstatus !== 'Not Syncing From Zone'"
19               class="lead text-primary"
20               popoverClass="rgw-overview-card-popover"
21               i18n>{{ metadataSyncInfo.syncstatus | titlecase }}</a>
22           <a  *ngIf="metadataSyncInfo.syncstatus === 'Not Syncing From Zone'"
23               class="lead text-primary"
24               i18n>Not Syncing</a>
25         </ng-template>
26         <li><b i18n>Status:</b></li>
27         <li *ngIf="metadataSyncInfo.syncstatus?.includes('failed') || metadataSyncInfo.syncstatus?.includes('error'); else showMetadataStatus">
28           <i  class="text-danger"
29               [ngClass]="[icons.danger]"></i>
30           <a class="lead text-danger"
31              i18n>Error</a>
32         </li>
33       </div>
34       <div cdsToggletipContent>
35         <ul class="text-center">
36           <li><h5><b i18n>Metadata Sync Status:</b></h5></li>
37           <li *ngFor="let status of metadataSyncInfo.fullSyncStatus">
38             <span *ngIf="!status?.includes(metadataSyncInfo.syncstatus) && !status?.includes('failed') && !status?.includes('error')">
39               <span *ngIf="status?.includes(':')">
40                 <b>{{ status.split(':')[0] | titlecase }}</b>:{{ status.split(':')[1] | titlecase}}
41               </span>
42               <span *ngIf="!status?.includes(':')">
43                 <b>{{ status | titlecase }}</b>
44               </span>
45             </span>
46             <span *ngIf="status?.includes('failed') || status?.includes('error')">
47                 {{ status | titlecase }}
48             </span>
49           </li>
50         </ul>
51       </div>
52     </cds-toggletip>
53     <li class="mt-4 fw-bold"
54         i18n>
55         Last Synced:
56     </li>
57     <li class="badge badge-info"
58         *ngIf="metadataSyncInfo.timestamp; else upToDateTpl">{{ metadataSyncInfo.timestamp | relativeDate }}</li>
59   </ul>
60 </span>