mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
pagination_nav should not expect a linkurl parameter when is_ajax flag is set
This commit is contained in:
parent
5293a6942f
commit
e511d3e040
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
{% load i18n %}
|
||||
{% url linkurl as url_to_use %}
|
||||
{% if not is_ajax %}
|
||||
{% url linkurl as url_to_use %}
|
||||
{% endif %}
|
||||
<div class="pagination">
|
||||
<p>{% blocktrans with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p>
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Reference in a new issue