add placeholder img

This commit is contained in:
Alex Martzios 2022-05-06 16:23:10 +03:00
parent 002c34a806
commit dde0c08e87
3 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,10 @@
<span class="uk-text-small uk-text-capitalize">{{stakeholder.visibility.toLowerCase()}}</span>
</div>
<div class="uk-card-media-top uk-padding-small uk-padding-remove-vertical uk-flex uk-flex-center uk-flex-middle uk-height-xsmall">
<img *ngIf="stakeholder.logoUrl" [src]="stakeholder | logoUrl" [alt]="stakeholder.name + ' logo'" class="uk-height-max-xsmall uk-blend-multiply">
<img *ngIf="stakeholder.logoUrl; else elseBlock" [src]="stakeholder | logoUrl" [alt]="stakeholder.name + ' logo'" class="uk-height-max-xsmall uk-blend-multiply">
<ng-template #elseBlock>
<img src="assets/common-assets/placeholder.png" alt="OpenAIRE placeholder logo" class="uk-height-max-xsmall uk-blend-multiply">
</ng-template>
</div>
<div class="uk-card-body uk-padding-remove-horizontal">
<div class="uk-text-capitalize uk-text-small type">{{mapType(stakeholder.type)}}</div>

@ -1 +1 @@
Subproject commit 8b94b7f98acfc46bde3c6898ec5110eefeebe9c2
Subproject commit b851b3e60b9f25dbbea1f53f4b2566aa67ddb763

@ -1 +1 @@
Subproject commit 72fc50c95c775c30026fe66a87e5357731986c33
Subproject commit 960456e6f06ebed8afc252b4e938c893eb767a57