{% extends "../../_collapsible_box.html" %} {% load i18n %} {% load static %} {% load rules %} {% block collapsible_box_icon %} wrench {% endblock collapsible_box_icon %} {% block collapsible_box_title %} {% translate "Actions" %} {% endblock collapsible_box_title %} {% block collapsible_box_content %} {% if page_form.instance.id and can_edit_page and not page.archived %} {% endif %} {% if page.explicitly_archived %} {% elif page.implicitly_archived %} {% for ancestor in page.explicitly_archived_ancestors %} {{ ancestor.best_translation.title }} {% endfor %} {% else %} {% endif %} {% if perms.cms.delete_page %} {% if not page.is_leaf %} {% with page.get_descendants.prefetch_translations as descendants %} {% for descendant in descendants %} {{ descendant.best_translation.title }} {% endfor %} {% endwith %} {% elif page.mirroring_pages.exists %} {% with page.mirroring_pages.all.prefetch_translations as mirroring_pages %}

{% blocktranslate count counter=mirroring_pages|length trimmed %} To delete this page, you have to remove the embedded live content from this page first: {% plural %} To delete this page, you have to remove the embedded live content from these pages first: {% endblocktranslate %}

{% for mirroring_page in mirroring_pages %} {% has_perm 'cms.change_page_object' request.user mirroring_page as can_change_page_object %} {% if can_change_page_object %} {{ mirroring_page.best_translation.title }} {% if mirroring_page.region != request.region %}({{ mirroring_page.region }}){% endif %} {% else %} {{ mirroring_page.best_translation.title }} {% if mirroring_page.region != request.region %}({{ mirroring_page.region }}){% endif %} {% endif %} {% endfor %} {% endwith %} {% else %} {% endif %} {% endif %} {% endblock collapsible_box_content %}