diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-03-18 14:30:38 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-03-18 14:30:38 +0100 |
commit | f39e94ace35c2a30e2079706bb3d27d8a16c91ec (patch) | |
tree | 2a149d5cd6486e7d07a8a912a14f47c9b94ac934 /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry | |
parent | ec7c67badc46aaf36205f97d3aa326dc72c777b7 (diff) | |
parent | 1b64a84b782090d8748bef0e9c390f491669e30c (diff) | |
download | wallabag-f39e94ace35c2a30e2079706bb3d27d8a16c91ec.tar.gz wallabag-f39e94ace35c2a30e2079706bb3d27d8a16c91ec.tar.zst wallabag-f39e94ace35c2a30e2079706bb3d27d8a16c91ec.zip |
Merge pull request #1767 from wallabag/v2-setting-for-reading-time
Setting for reading time
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 5 |
1 files changed, 3 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 c3fd4d28..371992df 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 | |||
@@ -50,8 +50,9 @@ | |||
50 | 50 | ||
51 | <div class="estimatedTime grey-text"> | 51 | <div class="estimatedTime grey-text"> |
52 | <span class="tool reading-time"> | 52 | <span class="tool reading-time"> |
53 | {% if entry.readingTime > 0 %} | 53 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} |
54 | {% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %} | 54 | {% if readingTime > 0 %} |
55 | {% trans with {'%readingTime%': readingTime } %}estimated reading time: %readingTime% min{% endtrans %} | ||
55 | {% else %} | 56 | {% else %} |
56 | {% trans with {'%inferior%': '<small class="inferieur"><</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %} | 57 | {% trans with {'%inferior%': '<small class="inferieur"><</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %} |
57 | {% endif %} | 58 | {% endif %} |