forked from EVOgeek/Vmeda.Online
25 lines
1.4 KiB
HTML
25 lines
1.4 KiB
HTML
<ng-container *ngIf="avatarUrl">
|
|
<img class="userpicture" *ngIf="linkProfile" [src]="avatarUrl" [alt]="'core.pictureof' | translate:{$a: fullname}" core-external-content
|
|
(error)="loadImageError()" (ariaButtonClick)="gotoProfile($event)" [siteId]="siteId">
|
|
|
|
<img class="userpicture" *ngIf="!linkProfile" [src]="avatarUrl" [alt]="'core.pictureof' | translate:{$a: fullname}"
|
|
core-external-content (error)="loadImageError()" aria-hidden="true" [siteId]="siteId">
|
|
</ng-container>
|
|
<ng-container *ngIf="!avatarUrl && initials">
|
|
<div class="userinitials" *ngIf="linkProfile" [attr.aria-label]="'core.pictureof' | translate:{$a: fullname}"
|
|
[title]="'core.pictureof' | translate:{$a: fullname}" (ariaButtonClick)="gotoProfile($event)" [attr.data-initials]="initials">
|
|
</div>
|
|
|
|
<div class="userinitials" *ngIf="!linkProfile" [attr.aria-label]="'core.pictureof' | translate:{$a: fullname}"
|
|
[title]="'core.pictureof' | translate:{$a: fullname}" role="img" [attr.data-initials]="initials" aria-hidden="true">
|
|
</div>
|
|
</ng-container>
|
|
<ng-container *ngIf="!avatarUrl && !initials"><!-- During loading -->
|
|
<img class="userpicture_loading" src="assets/img/user-avatar.png" role="presentation" aria-hidden="true" alt="">
|
|
</ng-container>
|
|
|
|
<span *ngIf="checkOnline && isOnline()" class="contact-status online" role="status" [attr.aria-label]="'core.online' | translate">
|
|
</span>
|
|
|
|
<ng-content />
|