X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/c6d9f1ade306811fbda6016aa902749caced9b7c..3f9e3adf741e6cf8fcc47b269f31352f23cc7b19:/linaro_django_pagination/templates/pagination/pagination.html diff --git a/linaro_django_pagination/templates/pagination/pagination.html b/linaro_django_pagination/templates/pagination/pagination.html index c2fb72d..fd925f0 100644 --- a/linaro_django_pagination/templates/pagination/pagination.html +++ b/linaro_django_pagination/templates/pagination/pagination.html @@ -1,26 +1 @@ -{% if is_paginated %} -{% load i18n %} -<div class="pagination"> - {% if page_obj.has_previous %} - <a href="?page{{ page_suffix }}={{ page_obj.previous_page_number }}{{ getvars }}" class="prev">‹‹ {% trans "previous" %}</a> - {% else %} - <span class="disabled prev">‹‹ {% trans "previous" %}</span> - {% endif %} - {% for page in pages %} - {% if page %} - {% ifequal page page_obj.number %} - <span class="current page">{{ page }}</span> - {% else %} - <a href="?page{{ page_suffix }}={{ page }}{{ getvars }}" class="page">{{ page }}</a> - {% endifequal %} - {% else %} - ... - {% endif %} - {% endfor %} - {% if page_obj.has_next %} - <a href="?page{{ page_suffix }}={{ page_obj.next_page_number }}{{ getvars }}" class="next">{% trans "next" %} ››</a> - {% else %} - <span class="disabled next">{% trans "next" %} ››</span> - {% endif %} -</div> -{% endif %} +{% include pagination_template %}