Add pagination bar at the bottom of the page

Fix #2021
This commit is contained in:
Nicolas Lœuillet 2016-05-03 21:44:57 +02:00
parent e7cd089fa6
commit 09e5b9391e
No known key found for this signature in database
GPG Key ID: 5656BE27E1E34D0A
4 changed files with 25 additions and 21 deletions

View File

@ -3,17 +3,7 @@
{% block title %}{{ 'entry.page_titles.unread'|trans }}{% endblock %}
{% block content %}
{% 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>
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %}
</div>
</div>
{% endblock %}
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
{% for entry in entries %}
<div id="entry-{{ entry.id|e }}" class="entry">
@ -121,4 +111,5 @@
</form>
</aside>
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
{% endblock %}

View File

@ -0,0 +1,11 @@
{% 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>
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %}
</div>
</div>
{% endblock %}

View File

@ -16,16 +16,7 @@
{% endblock %}
{% block content %}
{% block pager %}
<div class="results clearfix">
<div class="nb-results left">
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
</div>
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %}
</div>
{% endblock %}
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
<br />
<ul class="row data">
{% for entry in entries %}
@ -193,4 +184,5 @@
</form>
</div>
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
{% endblock %}

View File

@ -0,0 +1,10 @@
{% block pager %}
<div class="results clearfix">
<div class="nb-results left">
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
</div>
{% if entries.getNbPages > 1 %}
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
{% endif %}
</div>
{% endblock %}