{% if object_list %}
{{ filter.form.categories }}
{% for x in object_list %} {% endfor %}
thumbnail title description author name publish date action
{{ x.thumbnail }} {{ 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 %}
{% endif %}