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:
parent
525f46aba6
commit
0e6698a9ed
@ -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) ->
|
||||
|
@ -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">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user