summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/components/pwd-expiration-notification/pwd-expiration-notification.component.html
blob: b1bc5150ab2ee6b02e6315998205cbfd6a6803ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<cd-alert-panel class="no-margin-bottom"
                [type]="alertType"
                *ngIf="displayNotification"
                [showTitle]="false"
                size="slim"
                [dismissible]="alertType !== 'danger'"
                (dismissed)="onDismissed()">
  <div *ngIf="expirationDays === 0"
       i18n>Your password will expire in <strong>less than 1</strong> day. Click
    <a routerLink="/user-profile/edit"
       class="alert-link">here</a> to change it now.</div>
  <div *ngIf="expirationDays > 0"
       i18n>Your password will expire in <strong>{{ expirationDays }}</strong> day(s). Click
  <a routerLink="/user-profile/edit"
     class="alert-link">here</a> to change it now.</div>
</cd-alert-panel>