X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=c2157db59302c64cbd57332008db386fc8576fd2;hb=c73025ad8b684de1ac21ba7583f1af6f1d185159;hp=5ef5125f1d35772ff279430291af2077be0781ff;hpb=b17874a7d58e1ae853935a564b205566efd9ed74;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 5ef5125f..742dd330 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,53 +1,184 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title "Unread" %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.rssToken %} + + {% endif %} +{% endblock %} + +{% block title %} + {% set filter = '' %} + {% if tag is defined %} + {% set filter = tag.slug %} + {% endif %} + {% if searchTerm is defined and searchTerm is not empty %} + {% set filter = searchTerm %} + {% endif %} + {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %} +{% endblock %} {% block content %} - {% block pager %} - {% if entries is not empty %} -
-
{{ entries.count }} {% trans %}entries{% endtrans %}
-
+ {% set listMode = app.user.config.listMode %} + {% set currentRoute = app.request.attributes.get('_route') %} +
+
+ {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} + {% if listMode == 0 %}view_list{% else %}view_module{% endif %} + {% if app.user.config.rssToken %} + {% include "@WallabagCore/themes/common/Entry/_rss_link.html.twig" %} + {% endif %} +
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} +
+ + + + {% if entries.getNbPages > 1 %} +
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %} - {% endblock %} -
- {% if entries is empty %} -

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

- {% else %} -