aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorSimounet <contact@simounet.net>2017-12-04 19:34:46 +0100
committerSimounet <contact@simounet.net>2017-12-04 22:31:30 +0100
commitf836b98fa644601697c107738726dcf8a92dfecd (patch)
tree9af4e48a14c1b346a9beaf67ec3225aeb2ad80da /src/Wallabag
parentb9be1cf1ee771a34cbf496cc3b0290a01dbbe1c6 (diff)
downloadwallabag-f836b98fa644601697c107738726dcf8a92dfecd.tar.gz
wallabag-f836b98fa644601697c107738726dcf8a92dfecd.tar.zst
wallabag-f836b98fa644601697c107738726dcf8a92dfecd.zip
Fix pagination on list mode
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig9
1 files changed, 5 insertions, 4 deletions
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 9d6fb3f5..e883503e 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,8 +21,8 @@
21{% block content %} 21{% block content %}
22 {% set listMode = app.user.config.listMode %} 22 {% set listMode = app.user.config.listMode %}
23 {% set currentRoute = app.request.attributes.get('_route') %} 23 {% set currentRoute = app.request.attributes.get('_route') %}
24 <div class="results clearfix"> 24 <div class="results">
25 <div class="nb-results left"> 25 <div class="nb-results">
26 {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} 26 {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
27 <a href="{{ path('switch_view_mode') }}"><i class="material-icons">{% if listMode == 0 %}view_list{% else %}view_module{% endif %}</i></a> 27 <a href="{{ path('switch_view_mode') }}"><i class="material-icons">{% if listMode == 0 %}view_list{% else %}view_module{% endif %}</i></a>
28 {% if app.user.config.rssToken %} 28 {% if app.user.config.rssToken %}
@@ -34,7 +34,6 @@
34 {% endif %} 34 {% endif %}
35 </div> 35 </div>
36 36
37 <br />
38 <ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}"> 37 <ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}">
39 {% for entry in entries %} 38 {% for entry in entries %}
40 <li id="entry-{{ entry.id|e }}" class="col {% if listMode == 0 %}l3 m6{% else %}collection-item{% endif %} s12"> 39 <li id="entry-{{ entry.id|e }}" class="col {% if listMode == 0 %}l3 m6{% else %}collection-item{% endif %} s12">
@@ -52,7 +51,9 @@
52 </ul> 51 </ul>
53 52
54 {% if entries.getNbPages > 1 %} 53 {% if entries.getNbPages > 1 %}
55 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} 54 <div class="results">
55 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
56 </div>
56 {% endif %} 57 {% endif %}
57 58
58 <!-- Export --> 59 <!-- Export -->