{% load i18n paginator_tags %}
{% if paginator %}
<nav aria-label="pagination">
  <ul class="pagination justify-content-center">
    {% if page_obj.has_previous %}
    <li class="page-item"><a class="page-link" href="{% previous_page_url %}">{% trans "Previous" context "paginator" %}</a></li>
    {% else %}
    <li class="page-item disabled"><a class="page-link">{% trans "Previous" context "paginator" %}</a></li>
    {% endif %}
    <li class="page-item active"><a class="page-link">{{ page_obj.number }}</a></li>
    {% if page_obj.has_next %}
    <li class="page-item"><a class="page-link" href="{% next_page_url %}">{% trans "Next" context "paginator" %}</a></li>
    {% else %}
    <li class="page-item disabled"><a class="page-link">{% trans "Next" context "paginator" %}</a></li>
    {% endif %}
  </ul>
</nav>
{% endif %}
