mirror of
https://github.com/django/django.git
synced 2025-11-02 12:58:56 +00:00
Fixed #28745 -- Added first and last page links to paginator docs example.
This commit is contained in:
parent
e554b72a2a
commit
dcc0427c58
1 changed files with 2 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ pages along with any interesting information from the objects themselves::
|
|||
<div class="pagination">
|
||||
<span class="step-links">
|
||||
{% if contacts.has_previous %}
|
||||
<a href="?page=1">« first</a>
|
||||
<a href="?page={{ contacts.previous_page_number }}">previous</a>
|
||||
{% endif %}
|
||||
|
||||
|
|
@ -117,6 +118,7 @@ pages along with any interesting information from the objects themselves::
|
|||
|
||||
{% if contacts.has_next %}
|
||||
<a href="?page={{ contacts.next_page_number }}">next</a>
|
||||
<a href="?page={{ contacts.paginator.num_pages }}">last »</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue