X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=4679714e6398355bcdf5355dd04ece6db626821f;hb=3d9950792c0aef20643ce1c5f81670e1f7194af9;hp=abbcb3899412dd3d55ee58a1dfca61bf50aad67a;hpb=d2755b1c30318f370e7e903ebbd9d34bca11d939;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index abbcb389..4679714e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -1,79 +1,131 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title "Unread" %} +{% block title %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} +{% endblock %} {% block content %} - {% block pager %} -
-
{{ entries.count }} {% trans %}entries{% endtrans %}
- + +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ - {% endblock %} - - {% if entries is empty %} -

{% trans %}No articles found.{% endtrans %}

- {% else %} - {% for entry in entries %} -
-

{{ entry.title|raw }}

- {% if entry.readingTime > 0 %} -
{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min
- {% else %} -
{% trans %}estimated reading time :{% endtrans %} < 1 min
- {% endif %} - - - {% if entry.previewPicture is null %} -

{{ entry.content|striptags|slice(0, 300) }}…

- {% else %} - {{ entry.title|raw }} - {% endif %} +
+ + {% for entry in entries %} +
+

{{ entry.title|e|raw }}

+ + {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} +
+ + {% if readingTime > 0 %} + {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round}) }} + {% else %} + {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} + {% endif %} + + + + {{ entry.createdAt|date('Y-m-d') }} + +
- {% endfor %} + + + {% if entry.previewPicture is null %} + +

{{ entry.content|striptags|slice(0, 300) }}…

+ {% else %} + + {{ entry.title|e|raw }} + {% endif %} +
+ {% endfor %} + + {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} {% endif %} - - +
+ {% endif %} {% endblock %}