{% load i18n %}
{% if is_paginated %}
<div class="row">
    <div class="col-lg-12">
        <nav aria-label="Page navigation">
            <ul class="pagination">
                {% if page_obj.has_previous %}
                <li class="page-item">
                    <a class="page-link" href="?page={{ page_obj.previous_page_number }}">{% trans "Previous" %}</a>
                </li>
                {% else %}
                <li class="page-item disabled"><a class="page-link" href="#">{% trans "Previous" %}</a></li>
                {% endif %}
                <li class="page-item disabled">
                    <span class="page-link">
                    {% blocktrans with page_number=page_obj.number total_pages=page_obj.paginator.num_pages %}
                    page {{ page_number }} of {{ total_pages }}
                    {% endblocktrans %}
                    </span>
                </li>
                {% if page_obj.has_next %}
                <li class="page-item">
                    <a class="page-link" href="?page={{ page_obj.next_page_number }}">{% trans "Next" %}</a></li>
                {% else %}
                <li class="page-item disabled"><a class="page-link" href="#">{% trans "Next" %}</a></li>
                {% endif %}
            </ul>
        </nav>

    </div>
</div>
{% endif %}
