From 7ead8a0d9d4d758988c6d0755e0df2c4ee1b4f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 10 Apr 2016 08:48:53 +0200 Subject: [PATCH] Fix estimated reading time in material view Fix #1893 --- .../Resources/views/themes/material/Entry/entries.html.twig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 8782d6396..15eb16d43 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -74,8 +74,7 @@
- {{ 'entry.list.reading_time'|trans }} - {% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}< 1{% endif %} min + {% if readingTime > 0 %}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}{% else %}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{% endif %}