]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/blob
920a548f50b0428363f8a7b4ca52884f3a51a11f
[ceph.git] /
1 <ul class="me-2">
2   <ng-template #upToDateTpl>
3     <li class="badge badge-success"
4         i18n>Up to Date</li>
5   </ng-template>
6   <cds-toggletip  [dropShadow]="true"
7                   [align]="align">
8     <div  cdsToggletipButton
9           class="toggleTipBtn">
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"
16           i18n>Not Syncing</a>
17     </ng-template>
18     <li><b>Status:</b></li>
19     <li *ngIf="zone.syncstatus?.includes('failed') || zone.syncstatus?.includes('error'); else showStatus">
20       <svg  [cdsIcon]="icons.danger"
21             [size]="icons.size16"
22             class="cds-danger-color"></svg>
23       <a  class="lead text-danger"
24           i18n>Error</a>
25     </li>
26   </div>
27   <div cdsToggletipContent>
28     <div class="cds--popover-scroll-container">
29       <ul class="text-center">
30         <li><h5><b i18n>Sync Status:</b></h5></li>
31         <li *ngFor="let status of zone.fullSyncStatus">
32           <span *ngIf="!status?.includes(zone.name) && !status?.includes(zone.syncstatus) && !status?.includes('failed') && !status?.includes('error')">
33             <span *ngIf="status?.includes(':')">
34               <b>{{ status.split(': ')[0] | titlecase }}</b>:{{ status.split(': ')[1] | titlecase}}
35             </span>
36             <span *ngIf="!status?.includes(':')">
37               <b>{{ status | titlecase }}</b>
38             </span>
39           </span>
40           <span *ngIf="status?.includes('failed') || status?.includes('error')">
41             {{ status | titlecase }}
42           </span>
43         </li>
44       </ul>
45     </div>
46   </div>
47   </cds-toggletip>
48   <li class="mt-4 fw-bold"
49       i18n>
50       Last Synced:
51   </li>
52   <li class="badge badge-info"
53       *ngIf="zone.timestamp; else upToDateTpl">{{ zone.timestamp | relativeDate }}</li>
54 </ul>