import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
-import { NgbNavModule, NgbProgressbarModule } from '@ng-bootstrap/ng-bootstrap';
+import { NgbNavModule, NgbProgressbarModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
import { SharedModule } from '~/app/shared/shared.module';
import { BootstrapCreateModalComponent } from './bootstrap-create-modal/bootstrap-create-modal.component';
RouterModule,
FormsModule,
ReactiveFormsModule,
- NgbProgressbarModule
+ NgbProgressbarModule,
+ NgbTooltipModule
],
declarations: [
BootstrapCreateModalComponent,
let-value="value">
<span [ngClass]="row.health_color | mirrorHealthColor">{{ value }}</span>
</ng-template>
+<ng-template #localTmpl>
+ <span i18n
+ i18n-ngbTooltip
+ ngbTooltip="Local image count"># Local</span>
+</ng-template>
+<ng-template #remoteTmpl>
+ <span i18n
+ i18n-ngbTooltip
+ ngbTooltip="Remote image count"># Remote</span>
+</ng-template>
<router-outlet name="modal"></router-outlet>
export class PoolListComponent implements OnInit, OnDestroy {
@ViewChild('healthTmpl', { static: true })
healthTmpl: TemplateRef<any>;
+ @ViewChild('localTmpl', { static: true })
+ localTmpl: TemplateRef<any>;
+ @ViewChild('remoteTmpl', { static: true })
+ remoteTmpl: TemplateRef<any>;
subs: Subscription;
{ prop: 'name', name: $localize`Name`, flexGrow: 2 },
{ prop: 'mirror_mode', name: $localize`Mode`, flexGrow: 2 },
{ prop: 'leader_id', name: $localize`Leader`, flexGrow: 2 },
- { prop: 'image_local_count', name: $localize`# Local`, flexGrow: 2 },
- { prop: 'image_remote_count', name: $localize`# Remote`, flexGrow: 2 },
+ {
+ prop: 'image_local_count',
+ name: $localize`# Local`,
+ headerTemplate: this.localTmpl,
+ flexGrow: 2
+ },
+ {
+ prop: 'image_remote_count',
+ name: $localize`# Remote`,
+ headerTemplate: this.remoteTmpl,
+ flexGrow: 2
+ },
{
prop: 'health',
name: $localize`Health`,