diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-08-18 15:23:19 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-08-18 15:23:19 +0200 |
commit | 4e1be104ab59201e3d482e4fd31b69b76697fb9e (patch) | |
tree | 490cd8cb70611f1086bf8c45373d8d35a7458ef1 /src/Wallabag/CoreBundle/Resources/views/themes/baggy | |
parent | e408d7e895e784271a55c3a200666034db0af80a (diff) | |
download | wallabag-4e1be104ab59201e3d482e4fd31b69b76697fb9e.tar.gz wallabag-4e1be104ab59201e3d482e4fd31b69b76697fb9e.tar.zst wallabag-4e1be104ab59201e3d482e4fd31b69b76697fb9e.zip |
Added creation date and reading time on article view
Fix #2034
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index 5a800332..12b0bc53 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | |||
@@ -29,6 +29,11 @@ | |||
29 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.label'|trans }}" class="tool bad-display icon icon-delete"><span>{{ 'entry.view.left_menu.problem.label'|trans }}</span></a></li> | 29 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.label'|trans }}" class="tool bad-display icon icon-delete"><span>{{ 'entry.view.left_menu.problem.label'|trans }}</span></a></li> |
30 | </ul> | 30 | </ul> |
31 | </div> | 31 | </div> |
32 | <div class="link mdi-action-today"> {{ entry.createdAt|date('Y-m-d') }}</div> | ||
33 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} | ||
34 | <div class="link mdi-action-query-builder"> {% if readingTime > 0 %}{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }} | ||
35 | {% else %}{{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }} | ||
36 | {% endif %}</div> | ||
32 | {% set nbAnnotations = entry.annotations | length %} | 37 | {% set nbAnnotations = entry.annotations | length %} |
33 | <span class="tool link mdi-communication-comment"> {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}</span> | 38 | <span class="tool link mdi-communication-comment"> {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}</span> |
34 | <aside class="tags"> | 39 | <aside class="tags"> |