{% 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 not is_published %}{% translate "Select a document and review a revision before publishing." %}
{% endif %} {% endif %} {{ block.super }} {% if publication %}{% translate "This revision is currently published." %}
{% elif not file_error %}{{ diff_error }}
{% elif line_endings_only %}{% translate "The text is unchanged. Only line breaks differ." %}
{% else %}{{ file_error }}
{% 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 %}