aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-16 08:36:24 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-16 08:36:24 +0200
commit7fdecbb73c21a19d35c00d8c2dde190bc7f8c67a (patch)
tree87528dd1e1fbf4adcb0c88aa95ebd1588f6e7eb3 /src
parentd1f4996b77bc9c7b692cd98d835476f1c84edc28 (diff)
parent1f034a33162f17a80101afd41661797ca2aae25f (diff)
downloadwallabag-7fdecbb73c21a19d35c00d8c2dde190bc7f8c67a.tar.gz
wallabag-7fdecbb73c21a19d35c00d8c2dde190bc7f8c67a.tar.zst
wallabag-7fdecbb73c21a19d35c00d8c2dde190bc7f8c67a.zip
Merge pull request #1933 from wallabag/hide-pagination
Hide pagination if we only have one entry to display
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig4
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig4
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 04e51955..03e785bf 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 @@
8 <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> 8 <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
9 <div class="pagination"> 9 <div class="pagination">
10 <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a> 10 <a href="#" id="filter">{{ 'entry.filters.title'|trans }}</a>
11 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} 11 {% if entries.count > 1 %}
12 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
13 {% endif %}
12 </div> 14 </div>
13 </div> 15 </div>
14 {% endblock %} 16 {% 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 05cab954..2487966e 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 @@
21 <div class="nb-results left"> 21 <div class="nb-results left">
22 {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} 22 {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
23 </div> 23 </div>
24 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} 24 {% if entries.count > 1 %}
25 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
26 {% endif %}
25 </div> 27 </div>
26 {% endblock %} 28 {% endblock %}
27 <br /> 29 <br />