- {% set currentRoute = app.request.attributes.get('_route') %}
-
- {% if currentRoute == 'starred' %}
- {% trans %}Starred{% endtrans %}
- {% elseif currentRoute == 'archive' %}
- {% trans %}Archive{% endtrans %}
- {% else %}
- {% trans %}Unread{% endtrans %}
- {% endif %}
-
+ {% include "@WallabagCore/themes/_title.html.twig" %}
{% 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} %}