{% 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_quick_links, get_document_buttons, get_document_subnav, get_approvals_html, document_watch with context %} {% 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 %} {% set is_logged_in = request.user.is_authenticated() %} {% set canonical = request.build_absolute_uri(document.get_absolute_url()) %} {% if document.is_template %} {% set macro_name = document.slug|replace('Template:','', 1) %} {% set template_search_link = url('search', locale=document.locale)|urlparams(locale='*', kumascript_macros=macro_name) %} {% endif %} {% set current_revision = document.current_revision %} {% if (is_logged_in and current_revision and document.allows_revision_by(user)) and (current_revision.needs_technical_review() or current_revision.needs_editorial_review()) %} {% set approvals_html = get_approvals_html(document, request.user) %} {% endif %} {% 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 %} {% set is_translated = document.other_translations.exists() %} {% set show_left = zone_subnav_html or quick_links_html or approvals_html %} {% set show_right = (not is_zone_root and toc_html) %} {% set buttons = get_document_buttons(document) %} {% set crumbs = build_document_crumbs(document) %} {% set content_class = 'column-all' %} {% if show_left and show_right %} {% set content_class = 'column-half' %} {% elif show_left or show_right %} {% set content_class = 'column-main' %} {% endif %} {% block bodyclass %}document {% if is_zone %}zone{% endif %} {% if is_zone_root %}zone-landing{% endif %}{% endblock %} {% block body_attributes %}data-slug="{{ document.slug }}" contextmenu="edit-history-menu"{% endblock body_attributes %} {% block main_content_id %}document-main{% endblock %} {% block site_css %} {{ super() }} {% if zone_stack %} {% for zone in zone_stack|reverse() %} {% endfor %} {% endif %} {% endblock %} {% block extrahead %} {% if is_translated %} {% for translation in document.other_translations %} {% endfor %} {% endif %} {% if seo_summary %} {% endif %} {% endblock %} {% block lang_switcher %} {% if (document.is_localizable or document.parent) and is_translated %}
{% endif %} {% endblock %} {% block content %} {% if is_zone %} {% if is_zone_root %}
{{ buttons }} {{ crumbs }}

{{ document.title }}

{% set summary = document|selector_content_find('.summary') %} {% if (zone_subnav_html or quick_links_html) %}
{% if zone_subnav_html %} {{ get_document_subnav(zone_subnav_html) }} {% endif %} {% if quick_links_html %} {{ get_document_quick_links(quick_links_html) }} {% endif %}

{{ summary }}

{% else %}

{{ summary }}

{% endif %}
{% else %}
{% endif %} {% endif %}
{% if not is_zone_root %}
{% if waffle.flag('search_doc_navigator') %}
{{ _('Your Search Results') }}
    {% endif %}

    {{ document.title }}

    {% if waffle.flag('top_contributors') %}
    {% trans contributor_count=document.get_contributors()|length %} by {{ contributor_count }} contributor: {% pluralize %} by {{ contributor_count }} contributors: {% endtrans %}
      {% for username, contributor in document.get_contributors().iteritems() %}
    • {% endfor %}
    {% endif %} {% if messages %} {% for message in messages %} {% if 'wiki_redirect' in message.tags %}

    {{ message }}

    {% endif %} {% endfor %} {% endif %}
    {% endif %}
    {% if show_left and not is_zone_root %} {% endif %}
    {% if show_right %}
    {% if toc_html %}
    {{ _('In This Article') }}
      {{ toc_html|safe }}
    {% endif %}
    {% endif %} {# determine the article content based on template status #} {% if not document.is_template %} {% set document_html_safe = body_html|safe %} {% else %} {% set document_html_safe = document_html|safe %} {% endif %}
    {% if is_logged_in and document_html %} {% if render_raw_fallback %}
    {% trans url=document.get_absolute_url() %} This document is being rendered for the first time by the system. Please reload this page in a few minutes to see full content. {% endtrans %}
    {% elif document.is_rendering_in_progress %}
    {% trans url=document.get_absolute_url(), started_at=document.render_started_at %} An update to this document is currently in progress. If the content below seems stale or if something is missing, please reload this page in a few minutes. {% endtrans %}
    {% elif document.is_rendering_scheduled and not kumascript_errors %}
    {% trans url=document.get_absolute_url(), scheduled_at=document.render_scheduled_at %} An update to this document has been scheduled. If the content below seems stale or if something is missing, please reload this page in a few minutes. {% endtrans %}
    {% endif %} {% endif %} {% if kumascript_errors %} {% include 'wiki/includes/kumascript_errors.html' %} {% endif %} {% if document.current_revision %} {% if document.current_revision.needs_technical_review() %}

    {% trans %} This article is in need of a technical review. {% endtrans %}

    {% endif %} {% if document.current_revision.needs_editorial_review() %}

    {% trans %} This article is in need of an editorial review. {% endtrans %}

    {% endif %} {% if document.current_revision.localization_in_progress() %}

    {% trans %} This article is in progress of being translated. {% endtrans %}

    {% endif %} {% endif %} {% if fallback_reason %}
    {% trans help_link=help_link, locale=settings.LOCALES[request.locale].native %} Our volunteers haven't translated this article into {{ locale }} yet. Join us and help get the job done! {% endtrans %}
    {% endif %}
    {% if not fallback_reason %} {% if not document_html %} {{ _("This article doesn't have any content yet.") }} {% elif document.is_template %}
    {{ document_html }}
    {% trans search_link=template_search_link, title=document.title %} Search for pages that use {{ title }} to see example use cases and how many pages use this macro. {% endtrans %} {% else %} {{ document_html_safe }} {% endif %} {% elif fallback_reason == 'no_translation' %} {{ document_html_safe }} {% elif fallback_reason == 'translation_not_approved' %} {{ document.parent.html|safe }} {% else %} {{ _("This article doesn't have approved content yet.") }} {% endif %}
    {% if not is_zone_root %} {% if document.attachments.all().exists() %} {% include 'wiki/includes/attachment_list.html' %} {% endif %}

    {{ _('Document Tags and Contributors') }}

    {% set tags = document.tags.all() %} {% if tags.exists() %}
    {{ _('Tags:') }}
    {% endif %} {% trans contributors=user_list(contributors) %}
    Contributors to this page: {{ contributors }}
    {% endtrans %} {% if current_revision.creator %}
    {{ _('Last updated by:') }} {{ current_revision.creator }}, {{ datetimeformat(current_revision.created, format='datetime') }}
    {% endif %}
    {% endif %}
    {% if show_left %}
    {% if not is_zone_root %} {{ _('Hide Sidebar') }} {% if zone_subnav_html %} {{ get_document_subnav(zone_subnav_html) }} {% endif %} {% if quick_links_html %} {{ get_document_quick_links(quick_links_html) }} {% endif %} {% if approvals_html %} {{ approvals_html }} {% endif %} {% endif %}
    {% endif %}
    {% endblock %} {% block js %} {% if waffle.flag('search_doc_navigator') %} {% endif %} {% if waffle.flag('promote_script') %} {% endif %} {% endblock %}