recherche: première ébauche
[auf_framonde.git] / project / aldryn_search / templates / aldryn_search / includes / pagination.html
1 {% load i18n spurl %}
2
3 {% if page_obj.has_other_pages %}
4
5 <div class="pagenav">
6 {% with from=page_obj.start_index until=page_obj.end_index count=page_obj.paginator.count %}
7 <p>{% blocktrans %}{{ from }} – {{ until }} of {{ count }} {{ obj_string }} are displayed{% endblocktrans %}</p>
8 {% endwith %}
9 <ul>
10 {% if page_obj.has_previous %}
11 <li class="prev"><a href="{% spurl base='' query=request.GET set_query='page={{ page_obj.previous_page_number }}' %}">&laquo; {% trans "previous" %}</a></li>
12 {% endif %}
13 {% for page_num in page_obj.page_range %}
14 {% if page_num %}
15 {% if page_obj.number == page_num %}
16 <li class="page active"><span>{{ page_num }}</span></li>
17 {% else %}
18 <li class="page"><a href="{% spurl base='' query=request.GET set_query='page={{ page_num }}' %}">{{ page_num }}</a></li>
19 {% endif %}
20 {% else %}
21 <li class="jumper"><span>...</span></li>
22 {% endif %}
23 {% endfor %}
24 {% if page_obj.has_next %}
25 <li class="prev"><a href="{% spurl base='' query=request.GET set_query='page={{ page_obj.next_page_number }}' %}">{% trans "next" %} &raquo;</a></li>
26 {% endif %}
27 </ul>
28 </div>
29 {% endif %}