{% load i18n %}
{% if is_paginated %}
    <nav>
        <ul class="pagination">
            {% if page_obj.has_previous %}
                <li>
                    <a href="?page={{ page_obj.previous_page_number }}{% for key,value in view.request.GET.items %}{% ifnotequal key 'page' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">
                        {% trans 'Previous' %}
                    </a>
                </li>
            {% endif %}
            <li>
                <a class="disabled">
                    {% blocktrans with current_page_number=page_obj.number total_page_number=page_obj.paginator.num_pages %}
                        Page {{ current_page_number }} of {{ total_page_number }}.
                    {% endblocktrans %}
                </a>
            </li>
            {% if page_obj.has_next %}
                <li>
                    <a href="?page={{ page_obj.next_page_number }}{% for key,value in view.request.GET.items %}{% ifnotequal key 'page' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">
                       {% trans 'Next' %}
                    </a>
                </li>
            {% endif %}
        </ul>
    </nav>
{% endif %}
