Created
July 29, 2011 05:19
-
-
Save mbrochh/1113180 to your computer and use it in GitHub Desktop.
Pagination in Django Template Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="pagination"> | |
| <span class="step-links"> | |
| {% if page_obj.has_previous %} | |
| <a id="paginLeft" href="?page={{ page_obj.previous_page_number }}">previous</a> | |
| {% endif %} | |
| <span class="current"> | |
| {{ page_obj.number }} {% trans "of" %} {{ page_obj.paginator.num_pages }} | |
| </span> | |
| {% if page_obj.has_next %} | |
| <a id="paginRight" href="?page={{ page_obj.next_page_number }}">next</a> | |
| {% endif %} | |
| </span> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you explain what does?