From 1f034a33162f17a80101afd41661797ca2aae25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 16 Apr 2016 07:19:30 +0200 Subject: [PATCH] Hide pagination if we only have one entry to display --- .../Resources/views/themes/baggy/Entry/entries.html.twig | 4 +++- .../Resources/views/themes/material/Entry/entries.html.twig | 4 +++- 2 files changed, 6 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 04e519553..03e785bfc 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,9 @@
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
{% endblock %} 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 05cab9549..2487966ea 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,9 @@
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
- {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% if entries.count > 1 %} + {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} + {% endif %} {% endblock %}