X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=498234b99eb3fe4d17585e33680fa3106c11839c;hb=d61b24e4590bd83a8f8c1e83b95f6e978c9b7e24;hp=920fa9334bf69799d8dd5cdf11079bc82b58ad1f;hpb=e408d7e895e784271a55c3a200666034db0af80a;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 920fa933..498234b9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -1,84 +1,91 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %} - {% set currentRoute = app.request.attributes.get('_route') %} - - {% if currentRoute == 'starred' %} - {{ 'entry.page_titles.starred'|trans }} - {% elseif currentRoute == 'archive' %} - {{ 'entry.page_titles.archived'|trans }} - {% elseif currentRoute == 'all' %} - {{ 'entry.page_titles.filtered'|trans }} - {% else %} - {{ 'entry.page_titles.unread'|trans }} - {% endif %} - + {% 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) }} +
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} +
+
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} +
{% set currentRoute = app.request.attributes.get('_route') %} + {% set currentTag = '' %} + {% if tag is defined %} + {% set currentTag = tag %} + {% endif %} {% if currentRoute == 'homepage' %} {% set currentRoute = 'unread' %} {% endif %}

{{ 'entry.list.export_title'|trans }}

+ {% if form is not null %}
@@ -189,5 +205,6 @@
- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %} + {% endif %} + {% endblock %}