show 'more authors' for result preview

This commit is contained in:
Alex Martzios 2022-06-20 14:12:48 +03:00
parent d01ba65537
commit 657ff61207
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ import {properties} from "../../../../environments/environment";
<ng-container *ngFor="let author of authors.slice(0, viewAll?authors.length:authorsLimit) let i=index">
<ng-container *ngTemplateOutlet="author_template; context: { author: author, i:i}"></ng-container>
</ng-container>
<span *ngIf="!showAll && authors && authors.length > authorsLimit" class="uk-text-meta">
+{{authors.length-authorsLimit | number}} more
</span>
<span *ngIf="showAll && authors && authors.length > authorsLimit && !viewAll">
<a (click)="viewAllClick();">
+{{authors.length-authorsLimit | number}} Authors