{% if page.has_previous %} {% endif %} Page {{ page.number }} of {{ page.paginator.num_pages }} {% if page.has_next %} {% endif %}