Show full manager field if it doesn't contain @

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

View File

@ -26,8 +26,7 @@
</p> </p>
<p> <p>
<span *ngIf="community.managers != null && community.managers[0] != ''"> Curated by: <span *ngIf="community.managers != null && community.managers[0] != ''"> Curated by:
<span *ngFor='let manager of community.managers; let i = index'> {{manager.substr(0, manager.indexOf('@'))}} <span *ngFor='let manager of community.managers; let i = index'>{{manager.substr(0, manager.indexOf('@'))}}<span *ngIf="manager.includes('@') == 0">{{manager}}</span><span *ngIf="i<(community.managers.length-1)">,</span>
<span *ngIf="i<(community.managers.length-1)">,</span>
</span> </span>
</span> </span>
<span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span> <span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span>