]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1938 from wallabag/hide-pagination
authorThomas Citharel <tcit@tcit.fr>
Mon, 18 Apr 2016 07:41:56 +0000 (09:41 +0200)
committerThomas Citharel <tcit@tcit.fr>
Mon, 18 Apr 2016 07:41:56 +0000 (09:41 +0200)
Display pagination only if we have more than one page

src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 03e785bfc5441819cba7c0f68709c5588d9f6da2..c093edcb4fbd11c80300924996eb4742c51b71d5 100644 (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>
index 2487966eaaf2866f8ef8fbb3a59fbbb002c289ad..1abbceed5324b3238d4748f8f73d3b1ca937e738 100644 (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>