Notifications
<ng-container *ngFor="let notification of notifications; trackBy: trackByFn">
<ng-container *ngIf="notification.link">
<ng-container *ngIf="!notification.useRouter"> <a class="flex flex-auto py-5 pl-6 cursor-pointer" [href]="notification.link"> <ng-container *ngTemplateOutlet="notificationContent">
<ng-container *ngIf="notification.useRouter"> <a class="flex flex-auto py-5 pl-6 cursor-pointer" [routerLink]="notification.link"> <ng-container *ngTemplateOutlet="notificationContent">
<ng-container *ngIf="!notification.link">
<ng-container *ngTemplateOutlet="notificationContent">
<ng-template #notificationContent>
<ng-container *ngIf="notification.icon && !notification.image">
<mat-icon class="icon-size-5" [svgIcon]="notification.icon">
<ng-container *ngIf="notification.image"> <img class="flex-shrink-0 w-8 h-8 mr-4 rounded-full overflow-hidden object-cover object-center" [src]="notification.image" [alt]="'Notification image'">
<ng-container *ngIf="notification.title">
<ng-container *ngIf="notification.description">
{{notification.time | date:'MMM dd, h:mm a'}}
<ng-container *ngIf="!notifications || !notifications.length">
<mat-icon class="text-primary-500-700" [svgIcon]="'heroicons_outline:bell'">
Aucune notification
Les notifications s’afficheront ici.