mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
fix #1324: do not display pagination when only 1 page
This commit is contained in:
parent
9f1d650ae8
commit
2ac2e0bc2b
@ -20,7 +20,7 @@
|
|||||||
<div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
|
<div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
|
||||||
<div class="left"><form>{{ form_rest(form) }}<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">Filter</button></form></div>
|
<div class="left"><form>{{ form_rest(form) }}<button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">Filter</button></form></div>
|
||||||
<ul class="pagination right">
|
<ul class="pagination right">
|
||||||
{% for p in range(1, entries.nbPages) %}
|
{% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
|
||||||
<li class="{{ currentPage == p ? 'active':'waves-effect'}}">
|
<li class="{{ currentPage == p ? 'active':'waves-effect'}}">
|
||||||
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a>
|
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user