forked from wallabag/wallabag
Adds pagerfanta paginator everywhere, modifies article routing. Change API for is_starred and is_archived
This commit is contained in:
@ -8,9 +8,9 @@
|
||||
<div class="results">
|
||||
<div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
|
||||
<div class="pagination">
|
||||
{% for p in range(1, entries.count) %}
|
||||
{% for p in range(1, entries.nbPages) %}
|
||||
<li>
|
||||
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}">{{ p }}</a>
|
||||
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" class="{{ currentPage == p ? 'current':''}}" >{{ p }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@ -537,6 +537,16 @@ footer a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pagination .current {
|
||||
height: 25px;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid #d5d5d5;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
2.1 = "save a link" related styles
|
||||
========================================================================== */
|
||||
|
||||
Reference in New Issue
Block a user