now, pagination shows next 5 page links
This commit is contained in:
parent
87f99512ce
commit
24cceed559
1 changed files with 5 additions and 2 deletions
|
@ -4,8 +4,11 @@
|
||||||
<a href="{{ pagination.prev|url }}">« Previous</a>
|
<a href="{{ pagination.prev|url }}">« Previous</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="disabled">« Previous</span>
|
<span class="disabled">« Previous</span>
|
||||||
{% endif %}
|
{% endif %} |
|
||||||
| {{ pagination.page }} |
|
{{ pagination.page }} |
|
||||||
|
{% for page in range(pagination.page + 1, pagination.pages + 1)[:5] %}
|
||||||
|
<a href="{{ pagination.for_page(page)|url }}">{{ page }}</a> |
|
||||||
|
{% endfor %}
|
||||||
{% if pagination.has_next %}
|
{% if pagination.has_next %}
|
||||||
<a href="{{ pagination.next|url }}">Next »</a>
|
<a href="{{ pagination.next|url }}">Next »</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue