{# vim: set ts=2 et sts=2 sw=2: #} {% macro related_articles(related, document) -%} {% if related %} {% endif %} {%- endmacro %} {% macro contributor_list(contributors) -%}
{% trans contributors=user_list(contributors) %} Contributors to this page: {{ contributors }} {% endtrans %}
{%- endmacro %} {% macro document_title(document) -%}

{{ document.title }}

{%- endmacro %} {% macro document_messages(document, redirected_from) -%} {% if redirected_from %}
{{ _('(Redirected from {title})')|fe(href=redirected_from.get_absolute_url()|urlparams(redirect='no'), title=redirected_from.title) }}
{% endif %} {% if document.is_majorly_outdated() %}
{% trans url=document.parent.get_absolute_url(), title=document.parent.title %}

This article may be out of date.

An important change has been made to the English article on which this is based. Until this page is updated, you might find this helpful: {{ title }}

{% endtrans %}
{% endif %} {% if document.is_archived %}

{% trans %} This article is no longer maintained, so its content might be out of date. {% endtrans %}

{% endif %} {%- endmacro %} {% macro document_content(document, fallback_reason, request, settings) -%}
{% if not fallback_reason %} {{ document.html|safe }} {% elif fallback_reason == 'no_translation' %}
{% trans help_link=url('wiki.document', 'localize-firefox-help'), 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 %}
{{ document.html|safe }} {% elif fallback_reason == 'translation_not_approved' %}
{# L10n: This is shown for existing, never-approved translations #} {% trans %} Our volunteers are working on translating this article. Until it's ready, maybe the English version can be of some help. {% endtrans %}
{% if document.locale == settings.WIKI_DEFAULT_LANGUAGE %} {# This is the actual fallback document, show it. #} {{ document.html|safe }} {% else %} {{ document.parent.html|safe }} {% endif %} {% else %} {{ _("This article doesn't have approved content yet.") }} {% endif %}
{%- endmacro %} {% macro topic_list(topics) -%} {% set comma = joiner(', ') %} {% for topic in topics -%} {{ comma() }} {{ _(topic.name) }} {%- endfor %} {%- endmacro %} {% macro edit_messages(document, show_revision_warning) -%} {% if show_revision_warning %}
{% trans url=url('wiki.document_revisions', document.slug) %} Warning: There are newer unreviewed revisions of this article. See the history to base your edit on an existing unreviewed revision. {% endtrans %}
{% endif %} {%- endmacro %} {% macro revision_diff(revision_from, revision_to, revision_from_header=None, revision_to_header=None, show_picker=False) -%} {% if revision_from and revision_to %}
{% if show_picker %} {% endif %}

{% if revision_from_header %} {{ revision_from_header}} {% else %} {{ _('Revision {num}:')|f(num=revision_from.id) }} {% endif %}

{{ _('Revision {id} by {user} on {date}')|fe(id=revision_from.id, user=revision_from.creator, date=datetimeformat(revision_from.created, format='longdatetime')) }}

{% if revision_to_header %} {{ revision_to_header}} {% else %} {{ _('Revision {num}:')|f(num=revision_to.id) }} {% endif %}

{{ _('Revision {id} by {user} on {date}')|fe(id=revision_to.id, user=revision_to.creator, date=datetimeformat(revision_to.created, format='longdatetime')) }}

{{ _('Keywords:') }}

{{ revision_from.keywords }}

{{ revision_to.keywords }}

{{ _('Search results summary:') }}

{{ revision_from.summary }}

{{ revision_to.summary }}

{{ _('Content:') }}

{{ diff_table(revision_from.content, revision_to.content) }}
{% endif %} {%- endmacro %} {% macro document_watch(document, user) -%} {% if user.is_authenticated() and document %}
{% if document.is_watched_by(user) %}
{{ csrf() }}
{% else %}
{{ csrf() }}
{% endif %}
{% endif %} {%- endmacro %} {% macro submit_revision(form, buttons_only=False) -%}
{% if not buttons_only %}
{# Dummy wrapper so modal doesn't get shown by details/summary code #}

{% trans %}You rock! We'll send an email to let you know if your changes get approved. You can follow the discussion about this article by clicking the Discussion tab.{% endtrans %}

{{ form.comment|safe }}
{{ _('Cancel') }}
{% endif %} {%- endmacro %} {% macro show_for(header=None) -%} {# This macro needs to be imported with context to access oses, oses_json, browsers, browsers_json and version_group_json variables. #} {% if not header %} {% set header = _('Help with:') %} {% endif %}

{{ header }}

{%- endmacro %} {% macro vote_form(document, header=None) -%} {% if not header %} {% set header = _('Was this article helpful?') %} {% endif %} {% if document.allows_vote(request) %}

{{ header }} {{ _('Please wait...') }}

{% endif %} {%- endmacro %}