This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ec92c6
commit 5713849
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% if is_paginated %} | ||
<nav> | ||
<ul class="pagination"> | ||
{% if page_obj.has_previous %} | ||
<li> | ||
<a href="?page={{ page_obj.previous_page_number }}" aria-label="Previous"> | ||
<span aria-hidden="true">«</span> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li class="disabled"> | ||
<a href="#" aria-label="Previous"> | ||
<span aria-hidden="true">«</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% for page in paginator.page_range %} | ||
<li {% if page == page_obj.number %}class="active"{% endif %}> | ||
<a href="?page={{ page }}">{{ page }}</a> | ||
</li> | ||
{% endfor %} | ||
|
||
{% if page_obj.has_next %} | ||
<li> | ||
<a href="?page={{ page_obj.next_page_number }}" aria-label="Next"> | ||
<span aria-hidden="true">»</span> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li {% if not page_obj.has_next %}class="disabled"{% endif %}> | ||
<a href="#" aria-label="Next"> | ||
<span aria-hidden="true">»</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</nav> | ||
{% endif %} |