Fixed #28745 -- Added first and last page links to paginator docs example.
This commit is contained in:
parent
e554b72a2a
commit
dcc0427c58
|
@ -108,6 +108,7 @@ pages along with any interesting information from the objects themselves::
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<span class="step-links">
|
<span class="step-links">
|
||||||
{% if contacts.has_previous %}
|
{% if contacts.has_previous %}
|
||||||
|
<a href="?page=1">« first</a>
|
||||||
<a href="?page={{ contacts.previous_page_number }}">previous</a>
|
<a href="?page={{ contacts.previous_page_number }}">previous</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -117,6 +118,7 @@ pages along with any interesting information from the objects themselves::
|
||||||
|
|
||||||
{% if contacts.has_next %}
|
{% if contacts.has_next %}
|
||||||
<a href="?page={{ contacts.next_page_number }}">next</a>
|
<a href="?page={{ contacts.next_page_number }}">next</a>
|
||||||
|
<a href="?page={{ contacts.paginator.num_pages }}">last »</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue