{% load i18n %} {% if not is_ajax %} {% comment %} HACK: This template expects to be passed a 'linkurl' parameter, containing a URL name that can be reverse-resolved by the {% url %} tag with no further parameters. Views that have parameters in their URL can work around this by passing a bogus (but non-blank) URL name, which will return an empty string and produce a final URL of the form "?q=123", implicitly preserving the current URL path. Using the {% url ... as ... %} form of the tag ensures that this fails silently, rather than throwing a NoReverseMatch exception. {% endcomment %} {% url linkurl as url_to_use %} {% endif %}
{% blocktrans with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}