X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2FEntry%2Fentries.html.twig;h=0d295431ec2c2268a7436b9042cf6be51fbe4f1c;hb=b026d3b11566e705284c0ce95c61ff44a6e714bf;hp=2f8423d78fdca0728aa13938b801cbf169e17fa0;hpb=ad4d1caa9e744af57ca58a4e57576533eb682d00;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index 2f8423d7..0d295431 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig @@ -2,19 +2,15 @@ {% block title "Unread" %} -{% block menu %} - {% include "WallabagCoreBundle::_menu.html.twig" %} -{% endblock %} - {% block content %} {% block pager %} {% if entries is not empty %}
{{ entries.count }} {% trans %}entries{% endtrans %}
@@ -25,22 +21,27 @@ {% if entries is empty %}

{% trans %}No articles found.{% endtrans %}

{% else %} +
{{ form_rest(form) }}
{% for entry in entries %} -
+

{{ entry.title|raw }}

- {% if entry.content| readingTime > 0 %} -
{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min
+ {% if entry.readingTime > 0 %} +
{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min
{% else %}
{% trans %}estimated reading time :{% endtrans %} < 1 min
{% endif %} -

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

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

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

+ {% else %} + {{ entry.title|raw }} + {% endif %}
{% endfor %} {% endif %}