Reduce number of projects, organizations and subjects shown in entity-metadata to 3.
This commit is contained in:
parent
f17b25d66f
commit
9a258d8197
|
@ -172,7 +172,7 @@ import {Organization, Project} from "../../utils/result-preview/result-preview";
|
|||
<!-- Projects -->
|
||||
<ng-container *ngIf="projects && projects.length > 0">
|
||||
<span class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||
<span uk-tooltip="Project" *ngFor="let project of projects.slice(0,10) let i=index">
|
||||
<span uk-tooltip="Project" *ngFor="let project of projects.slice(0,3) let i=index">
|
||||
<span class="space">
|
||||
{{project.funderShortname ? project.funderShortname : project.funderName}}
|
||||
</span>
|
||||
|
@ -183,25 +183,25 @@ import {Organization, Project} from "../../utils/result-preview/result-preview";
|
|||
<span *ngIf="project.code"> ({{project.code}})</span>
|
||||
<span *ngIf="i < projects.length-1">, </span>
|
||||
</span>
|
||||
<span *ngIf="projects.length > 10">...</span>
|
||||
<span *ngIf="projects.length > 3">...</span>
|
||||
</ng-container>
|
||||
<!-- Organizations -->
|
||||
<ng-container *ngIf="organizations && organizations.length > 0">
|
||||
<span class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||
<span uk-tooltip="Partner" *ngFor="let organization of organizations.slice(0,10) let i=index">
|
||||
<span uk-tooltip="Partner" *ngFor="let organization of organizations.slice(0,3) let i=index">
|
||||
<span class="space">{{organization.name}}</span>
|
||||
<span *ngIf="(i < organizations.length-1) && (i < 9)">,</span>
|
||||
<span *ngIf="i < organizations.length-1">, </span>
|
||||
</span>
|
||||
<span *ngIf="organizations.length > 10">...</span>
|
||||
<span *ngIf="organizations.length > 3">...</span>
|
||||
</ng-container>
|
||||
<!-- Subjects -->
|
||||
<ng-container *ngIf="subjects && subjects.length > 0">
|
||||
<span class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||
<span uk-tooltip="Subject" *ngFor="let subject of subjects.slice(0,10) let i = index">
|
||||
<span uk-tooltip="Subject" *ngFor="let subject of subjects.slice(0,3) let i = index">
|
||||
<span class="space">{{subject}}</span>
|
||||
<span>{{(i < (subjects.slice(0, 10).length - 1)) ? "," : ""}}</span>
|
||||
<span *ngIf="i < subjects.length - 1">, </span>
|
||||
</span>
|
||||
<span *ngIf="subjects.length > 10">...</span>
|
||||
<span *ngIf="subjects.length > 3">...</span>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="provenanceAction">
|
||||
<span class="uk-margin-xsmall-left uk-margin-xsmall-right bullet"></span>
|
||||
|
|
Loading…
Reference in New Issue