diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-10 08:48:53 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-10 08:48:53 +0200 |
commit | 7ead8a0d9d4d758988c6d0755e0df2c4ee1b4f4b (patch) | |
tree | 1c06d2d5045495aa876d18432154a3eab17d5424 /src | |
parent | 015e4284f0628750e5d2ce1de27fafe964286562 (diff) | |
download | wallabag-7ead8a0d9d4d758988c6d0755e0df2c4ee1b4f4b.tar.gz wallabag-7ead8a0d9d4d758988c6d0755e0df2c4ee1b4f4b.tar.zst wallabag-7ead8a0d9d4d758988c6d0755e0df2c4ee1b4f4b.zip |
Fix estimated reading time in material view
Fix #1893
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 3 |
1 files changed, 1 insertions, 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 8782d639..15eb16d4 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 @@ | |||
74 | 74 | ||
75 | <div class="estimatedTime grey-text"> | 75 | <div class="estimatedTime grey-text"> |
76 | <span class="tool reading-time"> | 76 | <span class="tool reading-time"> |
77 | {{ 'entry.list.reading_time'|trans }} | 77 | {% if readingTime > 0 %}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}{% else %}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{% endif %} |
78 | {% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}<small class="inferieur"><</small> 1{% endif %} min | ||
79 | </span> | 78 | </span> |
80 | </div> | 79 | </div> |
81 | 80 | ||