From c1f8a18c8f6c7a57a824c2bbf386e41b379c2042 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Mon, 18 Jul 2022 14:14:41 +0200 Subject: [PATCH] removed dead code... added sorting --- .../wagtailadmin/pages/listing/_list.html | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/server/core/templates/wagtailadmin/pages/listing/_list.html b/server/core/templates/wagtailadmin/pages/listing/_list.html index 4ac428e0..d178eafa 100644 --- a/server/core/templates/wagtailadmin/pages/listing/_list.html +++ b/server/core/templates/wagtailadmin/pages/listing/_list.html @@ -50,7 +50,7 @@ {% if pages %} {% trans "Select page" as checkbox_aria_label %} - {% for page in pages %} + {% for page in pages|dictsort:"title"%} {% page_permissions page as page_perms %} - - {# {% if page.content_type.model == 'chapter' %}#} - {# #} - {# #} - {##} - {# #} - {# #} - {# #} - {# #} - {##} - {##} - {# #} - {##} - {# {% endif %}#} - {##} - - - - {% endfor %} {% else %} {% block no_results %}{% endblock %}