diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-12 14:05:53 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-12 14:05:53 +0200 |
commit | 2ac2e0bc2b462ee4bc308aeffebe30eaca911b2d (patch) | |
tree | 3371fa8573b80ac4d10fd5845675a160e215a475 /src/Wallabag | |
parent | 9f1d650ae8c98bec73f233f5e9e103747cefa7e3 (diff) | |
download | wallabag-2ac2e0bc2b462ee4bc308aeffebe30eaca911b2d.tar.gz wallabag-2ac2e0bc2b462ee4bc308aeffebe30eaca911b2d.tar.zst wallabag-2ac2e0bc2b462ee4bc308aeffebe30eaca911b2d.zip |
fix #1324: do not display pagination when only 1 page
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index b9f1be49..55e3540d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -20,7 +20,7 @@ | |||
20 | <div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | 20 | <div class="nb-results left">{{ entries.count }} {% trans %}entries{% endtrans %}</div> |
21 | <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> | 21 | <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> |
22 | <ul class="pagination right"> | 22 | <ul class="pagination right"> |
23 | {% for p in range(1, entries.nbPages) %} | 23 | {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %} |
24 | <li class="{{ currentPage == p ? 'active':'waves-effect'}}"> | 24 | <li class="{{ currentPage == p ? 'active':'waves-effect'}}"> |
25 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a> | 25 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a> |
26 | </li> | 26 | </li> |