{% load i18n %}
<nav class="grid_12 pagination">
    <a {% if page_obj.has_previous %}
       class="previous" href="?page={{ page_obj.previous_page_number }}"
       {% else %}
       class="previous disabled"
       {% endif %}>
       <span class="fa fa-arrow-left"></span>{% trans "Previous" %}
    </a>

    {% for page in paginator.page_range %}
      <a {% ifequal page_obj.number page %}class="active"{% else %}href="?page={{page}}"{% endifequal %}>{{page}}</a>
    {% endfor %}

    <a {% if page_obj.has_next %}
       class="next" href="?page={{ page_obj.next_page_number }}"
       {% else %}
       class="next disabled"
       {% endif %}>
       {% trans "Next" %} <span class="fa fa-arrow-right"></span>
    </a>
</nav>