Merge pull request #1938 from wallabag/hide-pagination

Display pagination only if we have more than one page
This commit is contained in:
Thomas Citharel 2016-04-18 09:41:56 +02:00
commit 0907a72c64
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
<div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
<div class="pagination">
<a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a>
{% if entries.count > 1 %}
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %}
</div>

View file

@ -21,7 +21,7 @@
<div class="nb-results left">
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
</div>
{% if entries.count > 1 %}
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %}
</div>