{% if object_list %}
{% endif %}
thumbnail | title | description | author name | publish date | action |
---|---|---|---|---|---|
{{ x.title }} | {{ x.description }} | {{ x.user_id.full_name }} | {{ x.date_uploaded }} |
|
|
{% if page_obj.has_previous %}
<
{% endif %}
{% if page_obj.number|add:"-2" >= 1 %}
{{ page_obj.number|add:"-2" }}
{% endif %}
{% if page_obj.number|add:"-1" >= 1 %}
{{ page_obj.number|add:"-1" }}
{% endif %}
{% if page_obj.number %}
{{ page_obj.number }}
{% endif %}
{% if page_obj.number|add:"1" <= paginator.num_pages %}
{{ page_obj.number|add:"1" }}
{% endif %}
{% if page_obj.number|add:"2" <= paginator.num_pages %}
{{ page_obj.number|add:"2" }}
{% endif %}
{% if page_obj.has_next %}
>
{% endif %}