diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index 3f5cf4609..0d295431e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig @@ -37,7 +37,11 @@
{{ entry.content|striptags|slice(0, 300) }}…
+ {% if entry.previewPicture is null %} +{{ entry.content|striptags|slice(0, 300) }}…
+ {% else %} + + {% endif %} {% endfor %} {% endif %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig index 18cfd59d2..f58d0399b 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig @@ -31,6 +31,9 @@ {% for tag in entry.tags %}{{ tag.label }}{% endfor %} {{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }} + {% if entry.previewPicture is not null %} + + {% endif %}