forked from Alfanous-team/alfanous
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pagination rel-links to WUI header, related to issue Alfanous-tea…
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 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
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,17 @@ | ||
{# @page: The number of current page #} | ||
{# @nb_pages: The total number of result pages #} | ||
|
||
{% load custom_filters %} | ||
{% load query %} | ||
|
||
{% if page != 1 %} | ||
{% with page|add:"-1" as prev_page %} | ||
<link rel="prev" href="?{% custom_query params.query prev_page False %}" /> | ||
{% endwith %} | ||
{% endif %} | ||
|
||
{% if page != nb_pages %} | ||
{% with page|add:"+1" as next_page %} | ||
<link rel="next" href="?{% custom_query params.query next_page False %}" /> | ||
{% endwith %} | ||
{% endif %} |