{% macro contributor_list(contributors) -%}
{% trans contributors=user_list(contributors), link=url('landings.contribute') %}

These fine people helped write this article:

{{ contributors }}
{% endtrans %}
{%- endmacro %} {% macro document_title(document) -%}

{{ document.title }}

{%- endmacro %} {% macro document_metadata(created_date, is_first_revision, product_titles, helpful_votes, metadata_type) -%} {% set truncate_length = 25 if helpful_votes else 50 %}
{{ product_titles | truncate(truncate_length) }} {{ product_titles }} {% if created_date %} {% if is_first_revision %}{{ _("Created") }}{% else %}{{ _("Last updated") }}{% endif %}: {{ datetimeformat(created_date, format="shortdate", use_naturaltime=True) }} {% endif %} {% if helpful_votes %} {# L10n: {0} is 'helpful-count', {1} is the actual percentage and {2} is the percent sign. #}{{ _('{1}{2} of users voted this helpful')|fe("helpful-count", helpful_votes, "%") }} {% endif %}
{%- 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() and not document.is_archived %}
{% 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, css_class='', any_localizable_revision=False, full_locale_name=None) -%}
{% if not fallback_reason %} {% if is_auto_published_translation(document) %}
{% trans edit_link=url('wiki.edit_document', document.slug, locale=document.locale) %} This is a machine-generated translation of the English content. It has not been reviewed by a human, and may contain errors. If you would like to revise this content, you can start here. {% endtrans %}
{% endif %} {{ document.html|safe }} {% elif fallback_reason == 'no_translation' %} {% if document.is_localizable and any_localizable_revision and not document.is_archived %}
{% trans help_link=url('wiki.document', 'localize-firefox-help'), document_trans_link=url('wiki.translate', document.slug) %} No one has helped translate this article yet. If you already know how localizing for SUMO works, start translating now. If you want to learn how to translate articles for SUMO, please start here. {% endtrans %}
{% endif %} {{ document.html|safe }} {% elif fallback_reason == 'translation_not_approved' %}
{# L10n: This is shown for existing, never-approved translations #} {% trans help_link=url('wiki.document', 'localize-firefox-help') %} Our volunteers are working on translating this article. Until it's ready, maybe the English version can be of some help. If you want to help us translate articles like this one, please click here. {% 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 %} {% elif fallback_reason == 'fallback_locale' %}
{% trans locale=full_locale_name[request.LANGUAGE_CODE], fallback_locale=full_locale_name[document.locale], help_link=url('wiki.document', 'localize-firefox-help'), eng_link=document.parent.get_absolute_url() %} This page does not exist in {{ locale }}. You have been redirected to the {{ fallback_locale }} version instead. If you would like to localize it into {{ locale }}, click here. You can also see the English version of this page. {% endtrans %}
{{ document.html|safe }} {% 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 %}

{{ _('Warning: There are newer unreviewed revisions of this article.') }}

{% trans url=url('wiki.document_revisions', document.slug) %} 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:') }}

{{ 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_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% endif %} {%- endmacro %} {% macro submit_revision(form, buttons_only=False, show_no_update_checkbox=False, include_diff=False, translate=False) -%}
{% if translate %} {% endif %} {% if include_diff %} {% endif %}
{% 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 }}
{% if show_no_update_checkbox %}
{% endif %}
{% endif %} {%- endmacro %} {% macro show_for(products, header=None, close_button=False) -%} {% if products|selectattr("visible")|list %} {% if header == None %} {% set header = _('Help with:') %} {% endif %}

{{ _('Customize this article') }}

{% if header %}

{{ header }} {% if close_button %} × {% endif %}

{% endif %} {% for prod in products %} {% if prod.visible %} {% set has_versions = prod.versions.count() > 1 %} {% set has_platforms = prod.platforms.count() > 1 %}
{% if has_versions %}
{% endif %} {% if has_platforms %}
{% endif %}
{% endif %} {% endfor %}
{% endif %} {%- endmacro %} {% macro vote_form(document, source=None) -%} {% if not header %} {% set header = _('Was this article helpful?') %} {% endif %} {% if document.allows_vote(request) and not document.current_revision.has_voted(request) %}
{% csrf_token %}

{{ header }}

{% if source %}{% endif %} {{ _('Please wait...') }}
{% endif %} {%- endmacro %} {% macro revision_contributors_label(contributors) -%} {# This macro is used in the reject and approve revision modals #} {% if contributors|length == 1 %} {{ _('Leave a message for {contributor}: ')|fe(contributor=contributors[0]) }} {% else %} {{ _('Leave a message for {rest} and {last}:')|fe(rest=', '.join(contributors[:-1]), last=contributors[-1]) }} {% endif %} {%- endmacro %} {% macro document_lock_warning() -%} {% if locked %}

{% trans user=locked_by.username %} Warning: This page is also being edited by {{ user }}! {% endtrans %}

{{ _('If you know what you are doing, you can edit the document anyway.') }}

{% csrf_token %} {{ _('Edit anyway') }}
{% endif %} {%- endmacro %} {% macro related_documents(related_docs) %} {% if related_docs %} {% endif %} {% endmacro %} {% macro inpage_contact_cta(product=None, product_slug=None) %} {% if product_slug %}

{{ _('Still need help?') }}

{{ _("If you've tried the steps above and you're still unable to sign in, send a message to our support team.") }}

{{ _('Contact Support') }}
{% endif %} {%- endmacro %}