X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=8d841b4cf477cb02c95c7f01c0b4e5e32471364b;hb=c146f6940a176142084b4fc3c610d13aca60d90e;hp=f718043b05ffedc383c99011b4177ff558019a09;hpb=439b36323e37f669b056cc5228c44bb91196256c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index f718043b..8d841b4c 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -1,41 +1,26 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %} +{% block title %} + {% include "@WallabagCore/themes/_title.html.twig" %} +{% endblock %} {% block content %} - {% block pager %} -
-
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
- -
- {% endblock %} + {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} {% for entry in entries %}
-

{{ entry.title|raw }}

- {% if entry.readingTime > 0 %} -
+

{{ entry.title|raw }}

+ + {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} +
- {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': entry.readingTime}) }} - -
+ {% if readingTime > 0 %} + {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }} {% else %} -
- - {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} - -
+ {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} {% endif %} + +
{% if entry.previewPicture is null %}

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

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