<li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li>
<li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName }}</span></a></li>
</ul>
- <p>{{ entry.content|striptags|slice(0, 300) }}…</p>
+ {% if entry.previewPicture is null %}
+ <p>{{ entry.content|striptags|slice(0, 300) }}…</p>
+ {% else %}
+ <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
+ {% endif %}
</div>
{% endfor %}
{% endif %}
{% for tag in entry.tags %}<span class="mdi-action-label-outline">{{ tag.label }}</span>{% endfor %}
{{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }}
</aside>
+ {% if entry.previewPicture is not null %}
+ <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /></div>
+ {% endif %}
<article>
{{ entry.content | raw }}
</article>