X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=2a972e1cf17edb9707b572a03611b6a5a239439e;hb=cefbe6a87fee244840e088955aa787a7ad3abb3e;hp=371992df41aad59aea17aebf337e06f475c52559;hpb=f39e94ace35c2a30e2079706bb3d27d8a16c91ec;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 371992df..a137f3c3 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,152 +1,127 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %} - {% set currentRoute = app.request.attributes.get('_route') %} - - {% if currentRoute == 'starred' %} - {% trans %}starred{% endtrans %} - {% elseif currentRoute == 'archive' %} - {% trans %}archive{% endtrans %} - {% elseif currentRoute == 'all' %} - {% trans %}Filtered{% endtrans %} - {% else %} - {% trans %}unread{% endtrans %} - {% endif %} +{% 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 %} -
-
{% transchoice entries.count %}{0} There is no entry.|{1} There is one entry.|]1,Inf[ There are %count% entries.{% endtranschoice %}
- + {% 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 %}
- {% endblock %} -
-