X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentry.html.twig;h=b8be0bccca9825233d7e3f8ddebd3c4941fd40b5;hb=10a1ffae5313b0f77287b92aca93bb0066d3b1e3;hp=8c06cf110c32092cc3c31aaa7d737f0574670ec2;hpb=49e2854d5c15bbce3f24f91da34450e8f209295b;p=github%2Fwallabag%2Fwallabag.git 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 8c06cf11..b8be0bcc 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 @@ -9,36 +9,64 @@
- -
- {% set nbAnnotations = entry.annotations | length %} - comment {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }} - + + + +
+ + {{ entry.createdAt|date('Y-m-d') }} + + + + {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} + {% if readingTime > 0 %} + {{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }} + {% else %} + {{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }} + {% endif %} + + + comment {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }} + +
{% if entry.previewPicture is not null %}
{{ entry.title|raw }}
{% endif %} @@ -46,6 +74,7 @@ {{ entry.content | raw }} +