{% extends "admin/change_form.html" %} {% load admin_modify admin_urls i18n %} {% block content %} {% if has_change_permission or add %}
{% if publish_form and not is_published %}

{% blocktranslate with document=candidate.document revision=candidate %}Ready to publish: {{ document }}, {{ revision }}.{% endblocktranslate %}

{% elif not is_published %}

{% translate "Select a document and review a revision before publishing." %}

{% endif %} {% endif %} {{ block.super }} {% if publication %}
{% if candidate %}

{{ candidate.document }}: {{ candidate }}

{% if is_published %}

{% translate "This revision is currently published." %}

{{ publication }}

{% elif not file_error %}

{% translate "Changes compared with the published revision" %}

{% if diff_error %}

{{ diff_error }}

{% elif line_endings_only %}

{% translate "The text is unchanged. Only line breaks differ." %}

{% else %}
{{ diff }}
{% endif %} {% endif %} {% if file_error %}

{{ file_error }}

{% else %} {% translate "Full text" %}
{{ content }}
{% endif %} {% if can_edit_document %}

{% translate "Edit as new revision" %}

{% endif %} {% elif not published and not add %}

{% translate "No published revision. The public endpoint returns an empty file." %}

{% endif %}
{% endif %} {% endblock %} {% block after_field_sets %} {{ block.super }} {% if publish_form %} {{ publish_form.as_p }} {% endif %} {% if document_form %}

{% translate "Revision selection" %}

{{ document_form.as_p }} {% if revision_form %} {{ revision_form.as_p }} {% endif %} {% if selected_document %}

{% translate "Revision history" %}

{% endif %}
{% endif %} {% endblock %} {% block submit_buttons_bottom %} {% with show_save=False show_save_and_add_another=False show_save_and_continue=False %} {% submit_row %} {% endwith %} {% endblock %}