{% load i18n %} {% load content_filters %} {% load page_filters %} {% load tree_filters %} {% load rules %} {% get_translation page language.slug as page_translation %} {% get_translation_state page language.slug mt_task_ids as current_language_status %}
{# djlint:off H020 #} {# djlint:on #}
{% include "pages/_generic_page_tree_node.html" %} {% if not is_archive %}
{% for tag in page_translation.tags %} {{ tag }} {% endfor %}
{% endif %}
{% spaceless %} {% for other_language in languages %} {% if other_language != request.region.default_language %} {% get_translation_state page other_language.slug mt_task_ids as other_status %}
{% if other_status == translation_status.MACHINE_TRANSLATION_IN_PROGRESS %} {% get_machine_translation_task_id page other_language.slug mt_task_ids as mt_task_id %} {# The following are revealed instead of the fallback above once the #} {# task finishes, matching whichever outcome it actually resolved to. #} {% elif other_status == translation_status.MACHINE_TRANSLATED %} {% elif other_status == translation_status.IN_TRANSLATION %} {% elif other_status == translation_status.OUTDATED %} {% elif other_status == translation_status.UP_TO_DATE %} {% elif other_status == translation_status.MISSING %} {% endif %}
{% endif %} {% endfor %} {% endspaceless %}
{% if is_archive %} {% if page.explicitly_archived %}
{% translate "Archived" %}
{% else %}
{% translate "Archived, because a parent page is archived" %}
{% endif %} {% else %}
{{ page_translation.get_status_display }}
{% if current_language_status == translation_status.MACHINE_TRANSLATION_IN_PROGRESS %} {% get_machine_translation_task_id page language.slug mt_task_ids as current_language_task_id %}
{% translate "Currently being translated" %}
{% endif %} {% endif %}
{{ page_translation.last_updated|date:"SHORT_DATE_FORMAT" }}
{% if page_translation.content or page.mirrored_page %} {% else %} {% endif %} {% if not is_archive %} {% if page_translation.status == PUBLIC %} {% else %} {% endif %} {% endif %} {% has_perm 'cms.publish_page_object' request.user page as can_publish_page %} {% if not is_archive and can_publish_page %} {% if page.mirroring_pages.exists %} {% else %} {% endif %} {% endif %} {% if is_archive and can_publish_page %} {% if page.explicitly_archived %} {% else %} {% endif %} {% endif %} {% if perms.cms.delete_page %} {# djlint:off H023 #} {% if not page.is_leaf %} {% elif page.mirroring_pages.exists %} {% else %} {% endif %} {# djlint:on #} {% endif %} {% if not is_archive and request.region.short_urls_enabled %} {% if page_translation %} {% else %} {% endif %} {% endif %}