{% load i18n %}
<nav class="pagination">
    {% if page_obj.has_previous %}
      <a class="previous" href="?page={{ page_obj.previous_page_number }}"><span aria-hidden="true">&larr;</span> {% trans "Previous" %}</a></li>
    {% else %}
        <div class="previous disabled"><span aria-hidden="true">&larr;</span> {% trans "Prev" %}</div>
    {% endif %}
    {% for page in paginator.page_range %}
      {% ifequal page_obj.number page %}
	    <div class="current">{{page}}</div>
	  {% else %}
	    <a href="?page={{page}}">{{page}}</a>
      {% endifequal %}
    {% endfor %}
    {% if page_obj.has_next %}
        <a class="next" href="?page={{ page_obj.next_page_number }}">{% trans "Next" %} <span aria-hidden="true">&rarr;</span></a></li>
    {% else %}
        <div class="next disabled">{% trans "Next" %} <span aria-hidden="true">&rarr;</span></div>
    {% endif %}
  </ul>
</nav>

