2 <div class="pagination">
3 {% if page_obj.has_previous %}
4 <a href="?page={{ page_obj.previous_page_number }}">‹‹ previous</a>
6 <span class="disabled">‹‹ previous</span>
8 {% for page in pages %}
10 {% ifequal page page_obj.number %}
11 <span class="current">{{ page }}</span>
13 <a href="?page={{ page }}{% if q %}&q={{ q }}{% endif %}">{{ page }}</a>
19 {% if page_obj.has_next %}
20 <a href="?page={{ page_obj.next_page_number }}">next ››</a>
22 <span class="disabled">next ››</span>