{% extends "client_base.html" %} {% load static %} {% block title %} {% if page_title %} {{page_title}} {% else %} Categories {% endif %} {% endblock %} {% block Style %} {% endblock Style %} {% block content %}

All categories

{% for category in categories_qs %} {% endfor %}
{% if categories_qs.paginator.count > 0 %}

Showing {{ categories_qs.start_index }} to {{ categories_qs.end_index }} of {{ categories_qs.paginator.count }} results

{% if categories_qs.paginator.num_pages > 1 %}
    {% if categories_qs.has_previous %}
  • «
  • {% else %}
  • «
  • {% endif %} {% for num in categories_qs.paginator.page_range %} {% if num >= categories_qs.number|add:'-2' and num <= categories_qs.number|add:'2' %} {% if categories_qs.number == num %}
  • {{ num }}
  • {% else %}
  • {{ num }}
  • {% endif %} {% endif %} {% endfor %} {% if categories_qs.has_next %}
  • »
  • {% else %}
  • »
  • {% endif %}
{% endif %}
{% endif %}
{% endblock %} {% block JS %} {% endblock %}