{# vim: set ts=2 et sts=2 sw=2: #} {% extends "wiki/base.html" %} {% from "wiki/includes/sidebar_modules.html" import document_tabs, document_notifications %} {% from "wiki/includes/document_macros.html" import related_articles, contributor_list, document_title, document_messages, document_content, topic_list %} {% from "wiki/includes/document_macros.html" import show_for, vote_form, document_watch with context %} {# L10n: {t} is the title of the document. {c} is the category. #} {% set title = _('{t} | {c}')|f(t=document.title, c=document.get_category_display()) %} {% set classes = 'document' %} {% set canonical_url = document.get_absolute_url() %} {% set scripts = ('wiki', 'readtracker') %} {% set extra_body_attrs = {'data-track-url': MEDIA_URL + 'img/pixel.gif', 'data-document-id': document.id} %} {% if document.parent %} {# If there is a parent doc, use it's URL for switching locales. #} {% set localizable_url = url('wiki.document', document.parent.slug, locale=settings.WIKI_DEFAULT_LANGUAGE) %} {% endif %} {% if document.is_template %} {% set meta = (('robots', 'noindex'),) %} {% endif %} {% block content %}
{{ related_articles(related, document) }} {{ document_title(document) }} {{ document_messages(document, redirected_from) }} {{ document_content(document, fallback_reason, request, settings) }} {{ contributor_list(contributors) }}
{% if not waffle.switch('hide-voting') %} {{ vote_form(document) }} {% endif %} {% if is_aoa_referral %} {% endif %} {% endblock %} {% block side %} {% if not waffle.switch('hide-voting') and waffle.flag('editing-tools-show-hide') %} {{ vote_form(document, header=_('Is this document helpful?')) }} {% endif %} {% endblock %} {% block side_top %} {% if fallback_reason == 'no_translation' %} {# If there is no translation, there is no document and the (future) parent is document. #} {% set doc = None %} {% set parent = document %} {% else %} {% set doc = document %} {% set parent = doc.parent %} {% endif %} {{ document_tabs(doc, parent, user, 'article', settings) }} {% if not waffle.flag('editing-tools-show-hide') %} {{ document_watch(doc, user) }} {% endif %} {% endblock %} {% block side_bottom %} {{ show_for(header=_('Article is for:')) }} {% endblock %} {% block breadcrumbs %} {% endblock %}