{% load i18n %} {% load content_filters %} {% load page_filters %} {% load tree_filters %} {% load rules %} {% get_translation page language.slug as page_translation %} {% block content %} {% if not filter_form.is_enabled %} {% has_perm 'cms.change_page_object' request.user as can_edit_pages %} {% if can_edit_pages and not is_archive and not is_statistics %} {% endif %} {% if not is_archive %} {% if not page.parent_id and not page.is_leaf or page.parent_id and page.cached_children|length > 0 %} {% endif %} {% endif %} {% endif %} {% if page_translation %} {{ page_translation.title }} {% else %} {% translate "Translation not available" %} {% endif %} {% if not backend_language %} {% get_current_language as LANGUAGE_CODE %} {% get_language LANGUAGE_CODE as backend_language %} {% endif %} {% if backend_language != language %}
{% if page.backend_translation %} {{ page.backend_translation.title }} {% else %} {% translate "Translation not available" %} {% endif %}
{% endif %} {% endblock content %}