wallabag/templates/Entry/_reading_time.html.twig

8 lines
364 B
Twig
Raw Normal View History

2022-05-03 21:28:20 +00:00
{% set reading_time = entry.readingTime / app.user.config.readingSpeed * 200 %}
2020-04-21 16:08:48 +00:00
<i class="material-icons grey-text">timer</i>
2022-05-03 21:28:20 +00:00
{% if reading_time > 0 %}
<span>{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': reading_time|round}) }}</span>
2016-12-27 21:37:24 +00:00
{% else %}
<span>{{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }}</span>
2016-12-27 21:37:24 +00:00
{% endif %}