add a check for community logo url

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@50989 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-03-01 11:48:13 +00:00
parent c90c80c371
commit d2db165ec1
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<div class="uk-navbar-center">
<a class="uk-navbar-item uk-logo" routerLinkActive="uk-link" routerLink="/" >
<img *ngIf="!community" src="{{logoPath}}logo-small-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height">
<img *ngIf="community" src="{{community.logoUrl}}" alt="OpenAIRE" class="uk-responsive-height">
<img *ngIf="community && community.logoUrl && community.logoUrl.length > 0" src="{{community.logoUrl}}" class="uk-responsive-height">
<div *ngIf="community" class="uk-margin-left uk-text-large"> {{community.name}} </div>
</a>
</div>
@ -123,14 +123,14 @@
<a routerLinkActive="uk-link" routerLink="/" class="uk-logo uk-navbar-item">
<img *ngIf="!community" src="{{logoPath}}logo-large-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height">
<img *ngIf="community" src="{{community.logoUrl}}" alt="OpenAIRE" class="uk-responsive-height">
<img *ngIf="community && community.logoUrl && community.logoUrl.length > 0" src="{{community.logoUrl}}" class="uk-responsive-height">
<div *ngIf="community" class="uk-margin-left uk-text-large"> {{community.name}} </div>
</a>
</div>
<div class="uk-navbar-left uk-visible@m uk-hidden@l">
<a routerLinkActive="uk-link" routerLink="/" class="uk-logo uk-navbar-item">
<img *ngIf="!community" src="{{logoPath}}logo-small-{{portal}}.png" alt="OpenAIRE" class="uk-responsive-height">
<img *ngIf="community" src="{{community.logoUrl}}" alt="OpenAIRE" class="uk-responsive-height">
<img *ngIf="community && community.logoUrl && community.logoUrl.length > 0" src="{{community.logoUrl}}" class="uk-responsive-height">
<div *ngIf="community" class="uk-margin-left uk-text-large"> {{community.name}} </div>
</a>
</div>