X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=3906e1e0ebda871dad40b0cf1385635b0f398156;hb=8668796106b856ca041512af27268ce6e49d2caf;hp=433b1caeb5218bb1598e25835661fa3d22bff2ea;hpb=439b36323e37f669b056cc5228c44bb91196256c;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 433b1cae..3906e1e0 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,131 +1,94 @@ {% 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 %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.feedToken %} + + {% 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 %} -
-
+ {% set listMode = app.user.config.listMode %} + {% set currentRoute = app.request.attributes.get('_route') %} + {% if currentRoute == 'homepage' %} + {% set currentRoute = 'unread' %} + {% endif %} +
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} + {% if listMode == 0 %}view_list{% else %}view_module{% endif %} + {% if app.user.config.feedToken %} + {% include "@WallabagCore/themes/common/Entry/_feed_link.html.twig" %} + {% endif %}
-
    - {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %} -
  • - {{ p }} -
  • - {% endfor %} -
+ {% if entries.getNbPages > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %}
- {% endblock %} -
-