]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
Merge pull request #1417 from wallabag/v2-display-picture
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entries.html.twig
index 89182d98f3b2f5dde6926b00149dc30d8114537d..b46d8f11fd5a1071954ff4406fd54721d47f8c96 100644 (file)
                         {% else %}
                             <div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time: {% endtrans %} <small class="inferieur">&lt;</small> 1 min</span></div>
                         {% endif %}
-                        <p>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p>
+                        {% if entry.previewPicture is null %}
+                            <p>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p>
+                        {% else %}
+                            <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
+                        {% endif %}
                     </div>
                     <div class="card-action">
                         <span class="bold"><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %}: {{ entry.title|e }} - {{ entry.domainName }}" class="tool original grey-text"><span>{{ entry.domainName | truncate(18) }}</span></a></bold>