remove pagination if page == 1 with baggy theme

This commit is contained in:
Nicolas Lœuillet 2015-08-12 14:06:56 +02:00
parent 2ac2e0bc2b
commit bdf39ff10d

View file

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