Add , to seperate managers and check if first manager is ''

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51245 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-03-14 15:41:03 +00:00
parent d5a0663bba
commit d4e4031d4f
1 changed files with 9 additions and 7 deletions

View File

@ -19,16 +19,18 @@
</blockquote>
<p *ngIf="community.subjects != null">
<span *ngFor='let subject of community.subjects; let i = index'>
<span *ngIf="subject != ''" class="uk-label"> {{subject}}</span>&nbsp;
<span *ngIf="subject != ''" class="uk-label">{{subject}}</span>&nbsp;
</span>
</p>
<p>
<span *ngIf="community.managers != null"> Curated by:
<span *ngFor='let manager of community.managers; let i = index'> {{manager}} </span>
<p>
<span *ngIf="community.managers != null && community.managers[0] != ''"> Curated by:
<span *ngFor='let manager of community.managers; let i = index'> {{manager}}
<span *ngIf="i<(community.managers.length-1)">,</span>
</span>
<span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span>
<subscribe *ngIf="communityId != null" [communityId]="communityId" showNumbers=true class="uk-margin-left"></subscribe>
</p>
</span>
<span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span>
<subscribe *ngIf="communityId != null" [communityId]="communityId" showNumbers=true class="uk-margin-left"></subscribe>
</p>
</div>
<div class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-grid" uk-grid="">