Adds pagerfanta paginator everywhere, modifies article routing. Change API for is_starred and is_archived

This commit is contained in:
Francois Gravelaine
2015-07-27 23:20:32 +02:00
parent 9b9b05008a
commit 9fb6ac830f
8 changed files with 76 additions and 59 deletions

View File

@ -8,9 +8,9 @@
<div class="results">
<div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
<div class="pagination">
{% for p in range(1, entries.count) %}
{% for p in range(1, entries.nbPages) %}
<li>
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}">{{ p }}</a>
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a>
</li>
{% endfor %}
</div>