diff --git a/app/config/services.yml b/app/config/services.yml index b3ec7c513..a7fa9bfea 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -12,3 +12,8 @@ services: class: Doctrine\Common\Cache\FilesystemCache arguments: - %kernel.cache_dir%/doctrine/metadata + + twig.extension.text: + class: Twig_Extensions_Extension_Text + tags: + - { name: twig.extension } diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index 118a2f4be..3f5cf4609 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig @@ -37,7 +37,7 @@
{{ entry.content|striptags|slice(0, 300) }}...
+{{ entry.content|striptags|slice(0, 300) }}…
{% endfor %} {% endif %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index b45552f2d..f896dec34 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -40,16 +40,16 @@ {% else %}{{ entry.content|striptags|slice(0, 300) }}...
+{{ entry.content|striptags|slice(0, 300) }}…