diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-12 14:06:56 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-08-12 14:06:56 +0200 |
commit | bdf39ff10ded31ea9c09b6510013f84245d72630 (patch) | |
tree | 0b2d07cab9f1939a5d65b7ba07282f1971185e1a /src/Wallabag | |
parent | 2ac2e0bc2b462ee4bc308aeffebe30eaca911b2d (diff) | |
download | wallabag-bdf39ff10ded31ea9c09b6510013f84245d72630.tar.gz wallabag-bdf39ff10ded31ea9c09b6510013f84245d72630.tar.zst wallabag-bdf39ff10ded31ea9c09b6510013f84245d72630.zip |
remove pagination if page == 1 with baggy theme
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig index 7629ef35..ea4a9976 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig | |||
@@ -8,7 +8,7 @@ | |||
8 | <div class="results"> | 8 | <div class="results"> |
9 | <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div> | 9 | <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div> |
10 | <div class="pagination"> | 10 | <div class="pagination"> |
11 | {% for p in range(1, entries.nbPages) %} | 11 | {% for p in range(1, entries.nbPages) if entries.nbPages > 1 %} |
12 | <li> | 12 | <li> |
13 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a> | 13 | <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a> |
14 | </li> | 14 | </li> |