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 %}
-
-
- {% if entry.readingTime > 0 %}
-
+
+
+ {% 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) }}…
+
+ {% for tag in entry.tags %}
+ - {{ tag.label }}
+ {% endfor %}
+
{% else %}
+
+ {% for tag in entry.tags | slice(0, 3) %}
+ - {{ tag.label }}
+ {% endfor %}
+
{% endif %}
{% endfor %}
-