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
Simon Willison
committed
Oct 1, 2017
1 parent
a76b691
commit 6c24d9f
Showing
4 changed files
with
30 additions
and
31 deletions.
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
{% if page.paginator.num_pages > 1 %}{% load blog_tags %} | |||
<div class="pagination"> | |||
{% if page_total %} | |||
<strong>{{ page_total }} result{{ page_total|pluralize }}</strong> | |||
{% endif %} | |||
<span class="step-links"> | |||
{% if page.has_previous %} | |||
<a href="{% page_href page.previous_page_number %}">« previous</a> | |||
{% endif %} | |||
<span class="current"> | |||
page {{ page.number }} / {{ page.paginator.num_pages }} | |||
</span> | |||
{% if page.has_next %} | |||
<a href="{% page_href page.next_page_number %}">next »</a> | |||
{% endif %} | |||
</span> | |||
</div> | |||
{% else %} | |||
{% if page_total %} | |||
<div class="pagination"> | |||
<strong>{{ page_total }} result{{ page_total|pluralize }}</strong> | |||
</div> | |||
{% endif %} | |||
{% endif %} |
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