upd
This commit is contained in:
parent
446ac8e697
commit
1f0172c4cb
@ -55,18 +55,18 @@
|
||||
<div id="pagination">
|
||||
<p>
|
||||
{% if posts.has_previous %}
|
||||
<a href="?page={{ posts.previous_page_number }}{% if search_query != '' %}&search={{ search_query }} {% endif %}"><-предыдущая</a>
|
||||
←<a href="?page={{ posts.previous_page_number }}{% if search_query != '' %}&search={{ search_query }} {% endif %}">предыдущая</a>
|
||||
{% endif %}
|
||||
{% if posts.has_next %}
|
||||
<a href="?page={{ posts.next_page_number }}{% if search_query != '' %}&search={{ search_query }} {% endif %}">следующая-></a>
|
||||
<a href="?page={{ posts.next_page_number }}{% if search_query != '' %}&search={{ search_query }} {% endif %}">следующая</a>→
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if posts.has_other_pages %}
|
||||
<a href="?page=1{% if search_query != '' %}&search={{ search_query }} {% endif %}">|<<</a>
|
||||
<a href="?page=1{% if search_query != '' %}&search={{ search_query }} {% endif %}">←</a>
|
||||
{% for page in posts.paginator.num_pages|truncate:posts.number %}
|
||||
{% if page == posts.number %} {{page}}
|
||||
{% else %} <a href="?page={{page}}{% if search_query != '' %}&search={{ search_query }} {% endif %}">{{page}}</a> {% endif %} {% endfor %}
|
||||
<a href="?page={{ posts.paginator.num_pages }}{% if search_query != '' %}&search={{ search_query }} {% endif %}"> >>| </a>
|
||||
<a href="?page={{ posts.paginator.num_pages }}{% if search_query != '' %}&search={{ search_query }} {% endif %}"> → </a>
|
||||
{% endif %}
|
||||
{% comment %}
|
||||
<ul class="menu_top paginator">
|
||||
|
Loading…
Reference in New Issue
Block a user