You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
791 B
20 lines
791 B
6 months ago
|
{% if is_paginated %}
|
||
|
<div class="video-page">
|
||
|
<div class="ui borderless pagination menu">
|
||
|
{% if page_obj.has_previous %}
|
||
|
<a class="item" href="?page={{ page_obj.previous_page_number }}{% if q %}&q={{q}}{% endif %}"><i
|
||
|
class="left arrow icon"></i></a></a>
|
||
|
{% endif %}
|
||
|
{% for i in page_list %}
|
||
|
{% if page_obj.number == i %}
|
||
|
<a class="active item">{{ i }}</a>
|
||
|
{% else %}
|
||
|
<a class="item" href="?page={{ i }}{% if q %}&q={{q}}{% endif %}">{{ i }}</a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% if page_obj.has_next %}
|
||
|
<a class="item" href="?page={{ page_obj.next_page_number }}{% if q %}&q={{q}}{% endif %}"><i class="icon right arrow"></i></a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|