diff --git a/server/core/templates/wagtailadmin/pages/listing/_list.html b/server/core/templates/wagtailadmin/pages/listing/_list.html deleted file mode 100644 index 69d831d0..00000000 --- a/server/core/templates/wagtailadmin/pages/listing/_list.html +++ /dev/null @@ -1,124 +0,0 @@ -{# This template is overwritten to create a custom cms ui for the model "chapter" to improve navigation experience.#} -{# See MS-538#} - -{% load i18n %} -{% load l10n %} -{% load wagtailadmin_tags %} - - {% if show_ordering_column or show_bulk_actions %} - - {% endif %} - - {% if show_parent %} - - {% endif %} - - - - - - {% block pre_parent_page_headers %} - {% endblock %} - - {% if parent_page %} - {% page_permissions parent_page as parent_page_perms %} - - - - - - - - {% endif %} - - {% block post_parent_page_headers %} - {% endblock %} - - - {% if pages %} - {% trans "Select page" as checkbox_aria_label %} - {% for page in pages %} - {% page_permissions page as page_perms %} - - {% if show_ordering_column %} - - {% elif show_bulk_actions %} - {% include "wagtailadmin/bulk_actions/listing_checkbox_cell.html" with obj_type="page" obj=page aria_labelledby_prefix="page_" aria_labelledby=page.pk|unlocalize aria_labelledby_suffix="_title" %} - {% endif %} - - - {% if show_parent %} - - {% endif %} - - - - - - {% block page_navigation %} - {% endblock %} - - - {% endfor %} - {% else %} - {% block no_results %}{% endblock %} - {% endif %} - -
- {% block parent_page_title %} - {% endblock %} - {% if parent_page.latest_revision_created_at %} -
- {% blocktrans with time_period=parent_page.latest_revision_created_at|timesince %}{{ time_period }} - ago{% endblocktrans %}
{% endif %}
- {% if not parent_page.is_root %} - {{ parent_page.content_type.model_class.get_verbose_name }} - {% endif %} - - {% if not parent_page.is_root %} - {% include "wagtailadmin/shared/page_status_tag.html" with page=parent_page %} - {% endif %} -
{% if orderable and ordering == "ord" %} -
{% trans 'Drag' %}
{% endif %}
- - {% block page_title %} - {% endblock %} - {% if page.content_type.model == 'chapter' %} -
-
    - {% for c in page.get_children %} - {% if not c.specific.user_created and not c.specific.contentblocksnapshot %} -
  • - {% if page_perms.can_edit %} - {{ c.get_admin_display_title }} - - {% else %} - {{ c.get_admin_display_title }} - {% endif %} -
  • - {% endif %} - - {% endfor %} -
-
- {% endif %} -
- {% block page_parent_page_title %} - {% with page.get_parent as parent %} - {% if parent %} - {{ parent.specific_deferred.get_admin_display_title }} - {% endif %} - {% endwith %} - {% endblock %} - {% if page.latest_revision_created_at %} -
- {% blocktrans with time_period=page.latest_revision_created_at|timesince %}{{ time_period }} - ago{% endblocktrans %}
{% endif %}
{{ page.content_type.model_class.get_verbose_name }} - {% include "wagtailadmin/shared/page_status_tag.html" with page=page %} -
diff --git a/server/core/templates/wagtailadmin/pages/listing/_page_title_explore.html b/server/core/templates/wagtailadmin/pages/listing/_page_title_explore.html index ca16cd16..b80bf3f4 100644 --- a/server/core/templates/wagtailadmin/pages/listing/_page_title_explore.html +++ b/server/core/templates/wagtailadmin/pages/listing/_page_title_explore.html @@ -4,25 +4,29 @@
{% if page.is_site_root %} - {% if perms.wagtailcore.add_site or perms.wagtailcore.change_site or perms.wagtailcore.delete_site %} - {% icon name="site" classname="initial" %} - {% endif %} + {% if perms.wagtailcore.add_site or perms.wagtailcore.change_site or perms.wagtailcore.delete_site %} + {% icon name="site" classname="initial" + %} + {% endif %} {% endif %} {% if page_perms.can_edit %} - - {% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial" %}{% endif %} - {{ page.get_admin_display_title }} - - {% else %} + {% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial" %}{% endif %} {{ page.get_admin_display_title }} + + {% else %} + {% if not page.is_site_root and not page.is_leaf %}{% icon name="folder" classname="initial" %}{% endif %} + {{ page.get_admin_display_title }} {% endif %} {% if show_locale_labels %} - {% status page.locale.get_display_name classname="w-status--label" %} + {% status page.locale.get_display_name classname="w-status--label" %} {% endif %} + + + {% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %} {% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
@@ -30,3 +34,27 @@ + + + + +{% if page.content_type.model == 'chapter' %} +
+ +
+{% endif %}