{% extends "admin/change_form.html" %} {% load admin_modify admin_urls i18n %} {% block content %} {% if has_change_permission or add %}
{% 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 %} {% endif %} {{ block.super }} {% if publication %}{% translate "This revision is currently published." %}
{% else %}{% translate "Only line endings or the final newline differ." %}
{% else %}{{ content }}
{% translate "Edit as new revision" %}
{% endif %} {% elif not published and not add %}{% translate "No published revision. The public endpoint returns an empty file." %}
{% endif %}