[Trunk|Library]: Community search results: Cut description on two lines

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55251 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-04-09 22:06:34 +00:00
parent e09abdaeb0
commit 36f169572d
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
</a>
<div class="uk-width-expand">
<div [title] = result.community.shortTitle class="uk-text-large uk-grid">
<a (click)="confirmModalOpen(result.community)" class="uk-width-3-4">
<a (click)="confirmModalOpen(result.community)" [class]="(result.isManager)?'uk-width-3-4':''">
{{(result.community.title)?result.community.title:result.community.shortTitle}}
</a>
<manage *ngIf="result.isManager" [communityId]="result.community.communityId" class="uk-width-expand"></manage>
@ -22,11 +22,11 @@
</div>
</div>
<div class="uk-padding-small uk-padding-remove-left uk-grid">
<div class="uk-width-3-5">
<div class="uk-width-1-2">
<span *ngIf="result.community.date"><b> Creation Date: </b></span>
<span *ngIf="result.community.date">{{result.community.date | date:'dd-MM-yyyy'}}</span>
</div>
<div class="uk-width-expand">
<div class="uk-width-expand uk-align-right">
<span *ngIf="result.community.type && result.community.type != ''" ><b> Type: </b></span>
<span *ngIf="result.community.type && result.community.type != ''" >{{(result.community.type == 'ri')? 'Research Initiative': 'Research Community'}}</span>
</div>

View File

@ -47,7 +47,7 @@ export class CommunitySearchResultsComponent {
}
public _formatDescription(description){
return (((description).length >this.maxCharacters)?(description.substring(0,(this.maxCharacters - ('...').length))+"..."):description);
return (((description).length > this.maxCharacters)?(description.substring(0,(this.maxCharacters - ('...').length))+"..."):description);
}
public confirmModalOpen(community: CommunityInfo) {