+{% load telemeta_utils %}
{% load i18n %}
{% if has_previous %}
- <a href="?page={{ previous }}">< {% trans "Previous" %}</a>
+ <a href="?page={{ previous }}&{{ criteria|build_query_string }}">< {% trans "Previous" %}</a>
{% endif %}
{% if show_first %}
{% ifequal linkpage page %}
{{ page }}
{% else %}
- <a href="?page={{ linkpage }}">{{ linkpage }}</a>
+ <a href="?page={{ linkpage }}&{{ criteria|build_query_string }}">{{ linkpage }}</a>
{% endifequal %}
{% endfor %}
{% if show_last %}
<a href="?page=last">{{ pages }}</a>
{% endif %}
{% if has_next %}
- <a href="?page={{ next }}">{% trans "Next" %} ></a>
+ <a href="?page={{ next }}&{{ criteria|build_query_string }}">{% trans "Next" %} ></a>
{% endif %}
'has_previous': context['has_previous'],
'show_first': 1 not in page_numbers,
'show_last': context['pages'] not in page_numbers,
+ 'criteria' : context['criteria'],
}
register.inclusion_tag('telemeta/paginator.html', takes_context=True)(paginator)