Remove wagtailadmin/shared/ajax_pagination_nav.html

pull/13036/head
Sage Abdullah 2025-04-15 12:51:07 +01:00
rodzic 490ad5b521
commit f9eb457b15
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
3 zmienionych plików z 7 dodań i 25 usunięć

Wyświetl plik

@ -58,6 +58,7 @@ Changelog
* Maintenance: Add `default_auto_field` setting to home app in project template (Sylvain Boissel)
* Maintenance: Migrate setuptools configuration from `setup.py` and `setup.cfg` to `pyproject.toml` (Sage Abdullah)
* Maintenance: Refactor `move_choose_destination` to a class-based view (Chiemezuo Akujobi)
* Maintenance: Remove deprecated `wagtailadmin/shared/ajax_pagination_nav.html` template (Sage Abdullah)
6.4.1 (21.02.2025)

Wyświetl plik

@ -202,3 +202,9 @@ The `insert_editor_js` hook will continue to be output when editing pages, as do
The undocumented template partial `wagtailadmin/pages/_editor_js.html` has been deprecated and will be removed in a future release.
If your project overrides the template to inject custom JavaScript into the Wagtail admin, you should follow the documented approaches to either use the [](insert_editor_js) hook or the [](insert_global_admin_js) hook instead.
### Removal of `wagtailadmin/shared/ajax_pagination_nav.html` template
The undocumented template partial `wagtailadmin/shared/ajax_pagination_nav.html` was marked for soft deprecation in Wagtail 2.16 and has now been removed.
If you use or override the template, you should use `wagtailadmin/shared/pagination_nav.html` with meaningful URLs as the `linkurl` value instead.

Wyświetl plik

@ -1,25 +0,0 @@
{# DEPRECATED. Use pagination_nav.html with meaningful URLs instead #}
{% load i18n %}
{% load wagtailadmin_tags %}
<nav class="pagination" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans trimmed with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p>
<ul>
<li class="prev">
{% if items.has_previous %}
<a href="#" data-page="{{ items.previous_page_number }}">
{% icon name="arrow-left" classname="default" %}
{% trans 'Previous' %}
</a>
{% endif %}
</li>
<li class="next">
{% if items.has_next %}
<a href="#" data-page="{{ items.next_page_number }}">
{% trans 'Next' %}
{% icon name="arrow-right" classname="default" %}
</a>
{% endif %}
</li>
</ul>
</nav>