From b026d3b11566e705284c0ce95c61ff44a6e714bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 13 Sep 2015 10:03:53 +0200 Subject: add previewPicture on baggy theme --- src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig | 6 +++++- src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/Entry') diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index 3f5cf460..0d295431 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 @@
  • {% trans %}delete{% endtrans %}
  • {{ entry.domainName }}
  • -

    {{ entry.content|striptags|slice(0, 300) }}…

    + {% if entry.previewPicture is null %} +

    {{ entry.content|striptags|slice(0, 300) }}…

    + {% else %} + {{ entry.title|raw }} + {% 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 18cfd59d..f58d0399 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 %} +
    {{ entry.title|raw }}
    + {% endif %}
    {{ entry.content | raw }}
    -- cgit v1.2.3