{# vim: set ts=2 et sts=2 sw=2: #} {% extends "wiki/base.html" %} {% block title %}{{ page_title(document.title + seo_parent_title) }}{% endblock %} {% from "wiki/includes/document_macros.html" import build_document_crumbs, get_document_buttons, document_watch with context %} {% set canonical = request.build_absolute_uri(url('wiki.document', document.full_path)) %} {% set zone_stack = document.find_zone_stack() %} {% set is_zone = zone_stack|length %} {% set is_zone_root = is_zone and zone_stack[0].document == document %} {% block bodyclass %}document {% if is_zone %}zone{% endif %} {% if is_zone_root %}zone-landing{% endif %}{% endblock %} {% if document.parent %} {# If there is a parent doc, use it for translating. #} {% set translate_url = url('wiki.select_locale', document_path=document.parent.full_path) %} {% else %} {% set translate_url = url('wiki.select_locale', document_path=document.full_path, locale=document.locale) %} {% endif %} {% if fallback_reason == 'no_translation' %} {% set help_link = url('wiki.translate', document_path=document.full_path, locale=document.locale)|urlparams(tolocale=request.locale) %} {% elif fallback_reason == 'translation_not_approved' %} {% set help_link = url('wiki.translate', document_path=document.parent.full_path, locale=document.parent.locale)|urlparams(tolocale=request.locale) %} {% endif %} {% block site_css %} {{ super() }} {% set zone_stack = document.find_zone_stack() %} {% if zone_stack %} {% for zone in zone_stack|reverse() %} {% endfor %} {% endif %} {% endblock %} {% block extrahead %} {% if seo_summary %} {% endif %} {% endblock %} {% block lang_switcher %} {% if document.is_localizable or document.parent %}
{% endif %} {% endblock %} {% block content %} {% if waffle.flag('redesign') %} {% include 'wiki/includes/document_content_redesign.html' %} {% else %} {% include 'wiki/includes/document_content.html' %} {% endif %} {% endblock %} {% block side %} {% include 'wiki/includes/support_for_selectors.html' %} {% endblock %} {% block js %} {% include 'wiki/includes/ckeditor_scripts.html' %} {% include 'wiki/includes/highlighting_scripts.html' %} {% if waffle.flag('offline_notice') %} {% endif %} {% endblock %}