Merge pull request #2022 from wallabag/fix-pagination-bar

Fix pagination bar on small devices
This commit is contained in:
Nicolas Lœuillet 2016-05-04 10:18:08 +02:00
commit 8ae9a3f52f
5 changed files with 28 additions and 21 deletions

View File

@ -437,6 +437,9 @@ main ul.row {
.indicator {
display: none;
}
.pagination li.prev, .pagination li.next {
width: auto;
}
}
@media only screen and (min-width : 400px) {

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 %}