1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

fix short descriptions in machines index

This commit is contained in:
Sylvain 2016-06-01 13:53:55 +02:00
parent 525f46aba6
commit 0e6698a9ed
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ Application.Filters.filter "simpleText", [ ->
(text) ->
if text != undefined
text = text.replace(/<br\s*\/?>/g, '\n')
text.replace(/<\/?\w+>/g, '')
text.replace(/<\/?\w+[^>]*>/g, '')
]
Application.Filters.filter "toTrusted", [ "$sce", ($sce) ->

View File

@ -35,7 +35,7 @@
</div>
<div class="panel-body" style="heigth:170px;">
<h1 class="m-b">{{machine.name}}</h1>
<p ng-bind-html="machine.description | simpleText | breakFilter | humanize : 140"></p>
<p ng-bind-html="machine.description | simpleText | humanize : 140 | breakFilter"></p>
</div>
<div class="panel-footer no-padder">