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

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

{% elif address_pending and candidate %}

{% translate "Save the address to publish the selected revision." %}

{% elif not is_published %}

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

{% endif %} {% endif %} {% if publish_form %}
{% csrf_token %} {{ publish_form.as_p }}
{% endif %} {{ block.super }} {% if publication %}
{% if candidate %}

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

{% if is_published %}

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

{{ publication }}

{% else %}

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

{% if line_endings_only %}

{% translate "Only line endings or the final newline differ." %}

{% else %}
{{ diff }}
{% endif %} {% endif %} {% translate "Complete content" %}
{{ content }}
{% 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 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 %}