Commit 3dd44ba27faeb22a6c44e0beee2e13f28d375f54
1 parent
93b30140
Exists in
master
and in
38 other branches
Do not truncate in the middle of a word
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/app/components/noosfero-activities/activity/create_article.html
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | ng-bind="vm.activity.target.article.title"></a> | 19 | ng-bind="vm.activity.target.article.title"></a> |
20 | </div> | 20 | </div> |
21 | <div class="lead small"> | 21 | <div class="lead small"> |
22 | - <div ng-bind-html="vm.activity.target.article.body | stripTags | truncate: 100 : '...'"></div> | 22 | + <div ng-bind-html="vm.activity.target.article.body | stripTags | truncate: 100 : '...': true"></div> |
23 | </div> | 23 | </div> |
24 | </div> | 24 | </div> |
25 | </div> | 25 | </div> |
src/app/components/noosfero-blocks/recent-documents/recent-documents.html
@@ -13,6 +13,6 @@ | @@ -13,6 +13,6 @@ | ||
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
15 | <img ng-show="card.image" ng-src="{{card.image.url}}" class="img-responsive article-image"> | 15 | <img ng-show="card.image" ng-src="{{card.image.url}}" class="img-responsive article-image"> |
16 | - <div class="post-lead" ng-bind-html="card.body | stripTags | truncate: 100: '...'"></div> | 16 | + <div class="post-lead" ng-bind-html="card.body | stripTags | truncate: 100: '...': true"></div> |
17 | </div> | 17 | </div> |
18 | </div> | 18 | </div> |