mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
17 lines
1.3 KiB
Twig
17 lines
1.3 KiB
Twig
<article id="item-{{entry.id}}">
|
|
<h2><a href="{{ path('view_entry', {'id': entry.id}) }}">{{ entry.title }}</a></h2>
|
|
{% set picture = entry.content|getPicture %}
|
|
{% if picture != "" %}
|
|
<figure class="right">
|
|
<img src="{{ picture }}" class="picturepreview thumb round border right" />
|
|
</figure>
|
|
{% endif %}
|
|
<p class="preview">{{ entry.content|striptags|slice(0, 300) }}…</p>
|
|
<ul class="tools">
|
|
<li>{% if entry.status == "read" %}<a href="{{ path('mark_entry_unread', {'id': entry.id}) }}">{{ 'mark as unread'|trans }}</a>{% else %}<a href="{{ path('mark_entry_read', {'id': entry.id}) }}">{{ 'mark as read'|trans }}</a>{% endif %}</li>
|
|
<li>{% if entry.bookmark == 1 %}<a href="{{ path('unstar_entry', {'id': entry.id}) }}">{{ 'unstar'|trans }}</a>{% else %}<a href="{{ path('star_entry', {'id': entry.id}) }}">{{ 'star'|trans }}</a>{% endif %}</li>
|
|
<li><a href="{{ path('remove_entry', {'id': entry.id}) }}">{{ 'delete'|trans }}</a></li>
|
|
<li><a href="{{ entry.url }}" class="external" title="{{ 'view original'|trans }}">{{ entry.url | getDomain }}</a></li>
|
|
<li>{{ entry.content | getReadingTime }} {{'min read'|trans}} </li>
|
|
</ul>
|
|
</article> |