mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Re-add bottom pagination
Also pager.html.twig wasn’t necessary, there weren't enough duplication to put them in a dedicated template
This commit is contained in:
parent
ab61dbc073
commit
817724a7b8
10 changed files with 68 additions and 76 deletions
|
@ -581,7 +581,6 @@ img.preview {
|
||||||
|
|
||||||
div.pagination ul {
|
div.pagination ul {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-bottom: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nb-results {
|
.nb-results {
|
||||||
|
|
|
@ -5,7 +5,17 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
|
|
||||||
|
<div class="results">
|
||||||
|
<div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
|
||||||
|
<div class="pagination">
|
||||||
|
<i class="btn-clickable download-btn material-icons md-36">file_download</i>
|
||||||
|
<i class="btn-clickable filter-btn material-icons md-36">filter_list</i>
|
||||||
|
{% if entries.getNbPages > 1 %}
|
||||||
|
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
<div id="entry-{{ entry.id|e }}" class="entry">
|
<div id="entry-{{ entry.id|e }}" class="entry">
|
||||||
|
@ -46,6 +56,10 @@
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if entries.getNbPages > 1 %}
|
||||||
|
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Export -->
|
<!-- Export -->
|
||||||
<aside id="download-form">
|
<aside id="download-form">
|
||||||
{% set currentRoute = app.request.attributes.get('_route') %}
|
{% set currentRoute = app.request.attributes.get('_route') %}
|
||||||
|
@ -67,7 +81,7 @@
|
||||||
|
|
||||||
<!-- Filter -->
|
<!-- Filter -->
|
||||||
{% if form is not null %}
|
{% if form is not null %}
|
||||||
<div id="filters" class="">
|
<div id="filters">
|
||||||
<form method="get" action="{{ path('all') }}">
|
<form method="get" action="{{ path('all') }}">
|
||||||
<h2>{{ 'entry.filters.title'|trans }}</h2>
|
<h2>{{ 'entry.filters.title'|trans }}</h2>
|
||||||
<a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a>
|
<a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">×</a>
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{% block pager %}
|
|
||||||
<div class="results">
|
|
||||||
<div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div>
|
|
||||||
<div class="pagination">
|
|
||||||
<i class="btn-clickable download-btn material-icons md-36">file_download</i>
|
|
||||||
<i class="btn-clickable filter-btn material-icons md-36">filter_list</i>
|
|
||||||
{% if entries.getNbPages > 1 %}
|
|
||||||
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
|
@ -5,7 +5,15 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
|
<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>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<ul class="row data">
|
<ul class="row data">
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
|
@ -82,6 +90,10 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{% if entries.getNbPages > 1 %}
|
||||||
|
{{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Export -->
|
<!-- Export -->
|
||||||
<div id="export" class="side-nav fixed right-aligned">
|
<div id="export" class="side-nav fixed right-aligned">
|
||||||
{% set currentRoute = app.request.attributes.get('_route') %}
|
{% set currentRoute = app.request.attributes.get('_route') %}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
{% 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 %}
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue