Fix estimated reading time in material view

Fix #1893
This commit is contained in:
Nicolas Lœuillet 2016-04-10 08:48:53 +02:00
parent 015e4284f0
commit 7ead8a0d9d
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A

View file

@ -74,8 +74,7 @@
<div class="estimatedTime grey-text"> <div class="estimatedTime grey-text">
<span class="tool reading-time"> <span class="tool reading-time">
{{ 'entry.list.reading_time'|trans }} {% if readingTime > 0 %}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }}{% else %}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{% endif %}
{% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}<small class="inferieur">&lt;</small> 1{% endif %} min
</span> </span>
</div> </div>