diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-09-13 11:41:23 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-09-13 11:41:23 +0200 |
commit | 4d5fd9be812825c480589cdcfcec281ffb5aa66a (patch) | |
tree | f961c5b2c8068af9dc15c95df878edb126b7483c /src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig | |
parent | 40f59b219bfd438bdaf4f36227a43f2b674ece00 (diff) | |
parent | b026d3b11566e705284c0ce95c61ff44a6e714bf (diff) | |
download | wallabag-4d5fd9be812825c480589cdcfcec281ffb5aa66a.tar.gz wallabag-4d5fd9be812825c480589cdcfcec281ffb5aa66a.tar.zst wallabag-4d5fd9be812825c480589cdcfcec281ffb5aa66a.zip |
Merge pull request #1417 from wallabag/v2-display-picture
fix #972: add preview pictures
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
37 | <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> | 37 | <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> |
38 | <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> | 38 | <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> |
39 | </ul> | 39 | </ul> |
40 | <p>{{ entry.content|striptags|slice(0, 300) }}…</p> | 40 | {% if entry.previewPicture is null %} |
41 | <p>{{ entry.content|striptags|slice(0, 300) }}…</p> | ||
42 | {% else %} | ||
43 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /> | ||
44 | {% endif %} | ||
41 | </div> | 45 | </div> |
42 | {% endfor %} | 46 | {% endfor %} |
43 | {% endif %} | 47 | {% endif %} |