-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #807 from Natay/master
pagination added to search
- Loading branch information
Showing
8 changed files
with
109 additions
and
98 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,33 @@ | ||
{% load humanize %} | ||
{% load forum_tags %} | ||
<div class="ui page-bar segment"> | ||
{% if results.pagenum != 1 %} | ||
<a class="ui small basic button no-shadow" | ||
|
||
href="{% url 'post_search' %}?query={{ query }}&page={{ previous_page }}&order={{ order }}"> | ||
<i class="ui angle double left icon"> </i> | ||
</a> | ||
{% else %} | ||
<div class="ui small basic button no-shadow"> | ||
<i class="ui angle double left icon"> </i> | ||
</div> | ||
{% endif %} | ||
|
||
<span class="phone">{{ results.total|intcomma }} | ||
result{{ results.total|pluralize }} | ||
• | ||
Page </span> {{ results.pagenum }} of {{ results.pagecount }} | ||
|
||
{% if not results.is_last_page %} | ||
|
||
<a class="ui small basic button no-shadow" | ||
href="{% url 'post_search' %}?query={{ query }}&page={{ next_page }}&order={{ order }}"> | ||
|
||
<i class="ui angle double right icon"></i> | ||
</a> | ||
{% else %} | ||
<div class="ui small basic button no-shadow"> | ||
<i class="ui angle double right icon"></i> | ||
</div> | ||
{% endif %} | ||
</div> |
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
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