Revision 60985
Added by Konstantina Galouni almost 3 years ago
browse-community.component.html | ||
---|---|---|
70 | 70 |
</span> |
71 | 71 |
</a> |
72 | 72 |
</div> |
73 |
<div class="uk-text-left uk-text-small" *ngIf="community.description != null && showDescription" |
|
74 |
title="{{community.description}}"> |
|
75 |
<span>{{community.description.slice(0, thresholdDescription)}}<span |
|
76 |
*ngIf="community.description.length > thresholdDescription">...</span></span> |
|
73 |
<div class="uk-text-left uk-text-small" *ngIf="community.description != null && showDescription"> |
|
74 |
<!-- title="{{community.description}}">--> |
|
75 |
<span>{{_formatDescription(community.description)}}</span> |
|
76 |
<!-- <span>{{community.description.slice(0, thresholdDescription)}}<span--> |
|
77 |
<!-- *ngIf="community.description.length > thresholdDescription">...</span></span>--> |
|
77 | 78 |
</div> |
78 | 79 |
</div> |
79 | 80 |
<div> |
Also available in: Unified diff
[Trunk | Connect]:
1. invite.component.ts: [Bug fix] Set meta (canonical url, url, title, description) only when "longView == true" (when we are on invite page, not just calling invite component).
2. browse-community.component.ts: Added method "_formatDescription()" which calls method "StringUtils.HTMLToString()" and then it cuts description up to a threshold (max chars).
3. browse-community.component.html: Removed tooltip from description and "_formatDescription()" is called to show description.