{% extends "base_template.html" %} {% from "courses/admin/_form.html" import flashes with context %} {% block title %}{{ _('Version of %(moment)s', moment=revision.created_at | course_datetime) }}{% endblock %} {% block content %}

{{ _('Version of %(moment)s', moment=revision.created_at | course_datetime) }}

{{ page.name }} · {{ course.name }} {% if revision.author_email %} · {{ revision.author_email }}{% endif %}

{{ _('Back to the history') }} {{ _('Back to the page') }} {# Restoring is a POST with a token, like every other change: a GET that rewrote a page would be rewritten by a crawler. #}
{{ confirm_form.hidden_tag() }}
{{ flashes() }}
{{ _('What changed') }}
{{ _('Lines removed since this version are marked in red, lines added in green.') }}
{% if diff %}
{% for row in diff %}
{# #}{# #}{{ row.text }}{# #}
{% endfor %}
{% else %}

{{ _('The body is identical. Only the title changed.') }}

{% endif %}
{{ _('This version, as a reader would have seen it') }}
{# Rendered by the same helper the public page uses, so what is being judged here is the page and not an approximation of it. #}
{{ revision_html }}
{% endblock %}