diff options
Diffstat (limited to 'client/src/app/menu/notification.component.html')
-rw-r--r-- | client/src/app/menu/notification.component.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/menu/notification.component.html b/client/src/app/menu/notification.component.html index 890b086f1..7a62800f5 100644 --- a/client/src/app/menu/notification.component.html +++ b/client/src/app/menu/notification.component.html | |||
@@ -1,15 +1,20 @@ | |||
1 | <ng-template #notificationNumber> | ||
2 | <div *ngIf="unreadNotifications > 0 && unreadNotifications < 100" class="unread-notifications">{{ unreadNotifications }}</div> | ||
3 | <div *ngIf="unreadNotifications >= 100" class="unread-notifications">99+</div> | ||
4 | </ng-template> | ||
5 | |||
1 | <div | 6 | <div |
2 | [ngbPopover]="popContent" autoClose="outside" placement="bottom" container={this} popoverClass="popover-notifications" | 7 | [ngbPopover]="popContent" autoClose="outside" placement="bottom" container={this} popoverClass="popover-notifications" |
3 | i18n-title title="View your notifications" [ngClass]="{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }" | 8 | i18n-title title="View your notifications" [ngClass]="{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }" |
4 | #popover="ngbPopover" (shown)="onPopoverShown()" (hidden)="onPopoverHidden()" | 9 | #popover="ngbPopover" (shown)="onPopoverShown()" (hidden)="onPopoverHidden()" |
5 | > | 10 | > |
6 | <div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div> | 11 | <ng-container *ngTemplateOutlet="notificationNumber"></ng-container> |
7 | 12 | ||
8 | <my-global-icon iconName="bell"></my-global-icon> | 13 | <my-global-icon iconName="bell"></my-global-icon> |
9 | </div> | 14 | </div> |
10 | 15 | ||
11 | <div *ngIf="isInMobileView" i18n-title title="View your notifications" class="notification-inbox-link"> | 16 | <div *ngIf="isInMobileView" i18n-title title="View your notifications" class="notification-inbox-link"> |
12 | <div *ngIf="unreadNotifications > 0" class="unread-notifications">{{ unreadNotifications }}</div> | 17 | <ng-container *ngTemplateOutlet="notificationNumber"></ng-container> |
13 | 18 | ||
14 | <a routerLink="/my-account/notifications" routerLinkActive="active" #link (click)="onNavigate(link)"> | 19 | <a routerLink="/my-account/notifications" routerLinkActive="active" #link (click)="onNavigate(link)"> |
15 | <my-global-icon iconName="bell"></my-global-icon> | 20 | <my-global-icon iconName="bell"></my-global-icon> |