From 2daae770942911428fba11af207e61e6460cff98 Mon Sep 17 00:00:00 2001 From: Simounet Date: Wed, 11 Jul 2018 23:57:01 +0200 Subject: Card no preview replaced by wallabag logo --- .../Resources/views/themes/material/Entry/_card_preview.html.twig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig index dee1f55b..581a1813 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig @@ -7,11 +7,8 @@ {% endfor %} - {% if entry.previewPicture is null %} - - {% else %} - - {% endif %} + {% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %} + {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %} -- cgit v1.2.3