]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Round readingtime to avoid crazy number 2552/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 6 Nov 2016 20:41:32 +0000 (21:41 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 6 Nov 2016 20:41:32 +0000 (21:41 +0100)
Like `8.666666666667 min`

src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 6347aface346c17f9eb48e42a48994ba6ced9159..498234b99eb3fe4d17585e33680fa3106c11839c 100644 (file)
@@ -78,7 +78,7 @@
                     <div class="card-action">
                         <span class="reading-time grey-text">
                             <i class="material-icons" title="{{ 'entry.list.reading_time'|trans }}">timer</i>
-                            {{ entry.readingTime / app.user.config.readingSpeed }} min
+                            {{ entry.readingTime / app.user.config.readingSpeed|round }} min
                         </span>
 
                         <ul class="tools right">