]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Hide pagination if we only have one entry to display 1933/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Sat, 16 Apr 2016 05:19:30 +0000 (07:19 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Sat, 16 Apr 2016 05:19:30 +0000 (07:19 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig

index 04e519553fd880f2624d2eb405fe1dd28eb96713..03e785bfc5441819cba7c0f68709c5588d9f6da2 100644 (file)
@@ -8,7 +8,9 @@
             <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>
-                {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+                {% if entries.count > 1 %}
+                    {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+                {% endif %}
             </div>
         </div>
     {% endblock %}
index 05cab9549aab5eb2bce689bec1ba9dc49a078cca..2487966eaaf2866f8ef8fbb3a59fbbb002c289ad 100644 (file)
@@ -21,7 +21,9 @@
         <div class="nb-results left">
             {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
         </div>
-        {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+        {% if entries.count > 1 %}
+            {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+        {% endif %}
     </div>
     {% endblock %}
     <br />