]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
Merge pull request #1938 from wallabag/hide-pagination
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / baggy / Entry / entries.html.twig
index f00ade4ea16839faff96073cb752a950a3432bfc..c093edcb4fbd11c80300924996eb4742c51b71d5 100644 (file)
@@ -6,10 +6,12 @@
     {% block pager %}
         <div class="results">
             <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>
+            <div class="pagination">
+                <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a>
+                {% if entries.getNbPages > 1 %}
                     {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
-                </div>
+                {% endif %}
+            </div>
         </div>
     {% endblock %}