{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
Prev
{% else %}
Prev
{% endif %}
{% else %}
Prev
{% endif %}
{% if paginator.page == 1 %}
1
{% else %}
1
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
{{ count }}
{% else %}
{{ count }}
{% endif %}
{% endfor %}
{% if paginator.next_page %}
Next
{% else %}
Next
{% endif %}