X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentries.html.twig;h=56a0faacfb09247619e18ed9c9aff2ac170c6574;hb=1c282b1da0491cda620e03ab92c00341aa80e18b;hp=1554cce4789b33c9cebaee7f3394e5573feadd5f;hpb=cdd3010b478c9ca818dd6d22d03c81ef4a5ab208;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 1554cce4..56a0faac 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,11 +1,25 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% include "@WallabagCore/themes/_title.html.twig" %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'currentTag': currentTag} %} {% endblock %} {% block content %} - {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ +
{% for entry in entries %}
@@ -20,6 +34,11 @@ {{ 'entry.list.reading_time_less_one_minute'|trans|raw }} {% endif %} + + + {{ entry.createdAt|date('Y-m-d') }} + +
{% if entry.previewPicture is null %} -

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

+

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

{% else %} {{ entry.title|raw }} @@ -46,28 +65,36 @@ {% endfor %} + {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} + {% if form is not null %} - + {% endif %} {% endblock %}