diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 09:41:56 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 09:41:56 +0200 |
commit | 0907a72c6477cbe0f25a25563a9c37c43a28d5ad (patch) | |
tree | 77d0dbeed69580eb19d87e9894fea18e0c423d00 /src/Wallabag/CoreBundle/Resources | |
parent | 71601c171f54aaca00d035ee282ba742ce15f41a (diff) | |
parent | 188b74b6df0647e9833d546443eb43d4df8536f7 (diff) | |
download | wallabag-0907a72c6477cbe0f25a25563a9c37c43a28d5ad.tar.gz wallabag-0907a72c6477cbe0f25a25563a9c37c43a28d5ad.tar.zst wallabag-0907a72c6477cbe0f25a25563a9c37c43a28d5ad.zip |
Merge pull request #1938 from wallabag/hide-pagination
Display pagination only if we have more than one page
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 03e785bf..c093edcb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | |||
@@ -8,7 +8,7 @@ | |||
8 | <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> | 8 | <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> |
9 | <div class="pagination"> | 9 | <div class="pagination"> |
10 | <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a> | 10 | <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a> |
11 | {% if entries.count > 1 %} | 11 | {% if entries.getNbPages > 1 %} |
12 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} | 12 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} |
13 | {% endif %} | 13 | {% endif %} |
14 | </div> | 14 | </div> |
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 2487966e..1abbceed 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 | |||
@@ -21,7 +21,7 @@ | |||
21 | <div class="nb-results left"> | 21 | <div class="nb-results left"> |
22 | {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} | 22 | {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} |
23 | </div> | 23 | </div> |
24 | {% if entries.count > 1 %} | 24 | {% if entries.getNbPages > 1 %} |
25 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} | 25 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} |
26 | {% endif %} | 26 | {% endif %} |
27 | </div> | 27 | </div> |