diff options
| author | Sam Morrow <info@sammorrowdrums.com> | 2017-10-25 12:05:31 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-01 20:10:54 -0400 |
| commit | dcc0427c58df19863e260de13b7a86a3648d57e9 (patch) | |
| tree | a84a17ccd0c65fa314eddf6561bfb3342f8d2d73 /docs | |
| parent | e554b72a2a5473f3f1e57a32565758757a9e8e87 (diff) | |
Fixed #28745 -- Added first and last page links to paginator docs example.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/pagination.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt index bc936faaef..81efaafd28 100644 --- a/docs/topics/pagination.txt +++ b/docs/topics/pagination.txt @@ -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> |
