{% set currentRoute = app.request.attributes.get('_route') %}
{% if currentRoute == 'starred' %}
- {% trans %}starred{% endtrans %}
+ {{ 'entry.page_titles.starred'|trans }}
{% elseif currentRoute == 'archive' %}
- {% trans %}archive{% endtrans %}
+ {{ 'entry.page_titles.archived'|trans }}
{% elseif currentRoute == 'all' %}
- {% trans %}Filtered{% endtrans %}
+ {{ 'entry.page_titles.filtered'|trans }}
+ {% elseif currentRoute == 'tag_entries' %}
+ {{ 'entry.page_titles.filtered_tags'|trans }}
{% else %}
- {% trans %}unread{% endtrans %}
+ {{ 'entry.page_titles.unread'|trans }}
{% endif %}
-
{% endblock %}
{% block content %}
- {% block pager %}
- <div class="results clearfix">
- <div class="nb-results left">{% transchoice entries.count %}{0} There is no entry.|{1} There is one entry.|]1,Inf[ There are %count% entries.{% endtranschoice %}</div>
- <ul class="pagination right">
- {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
- <li class="{{ currentPage == p ? 'active':'waves-effect'}}">
- <a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'page': p})) }}">{{ p }}</a>
- </li>
- {% endfor %}
- </ul>
- </div>
- {% endblock %}
+ {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}