{% extends "wagtailadmin/base.html" %} {% load i18n wagtailadmin_tags %} {% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Comparing {{ title }}{% endblocktrans %}{% endblock %} {% block content %} {% trans "Comparing" as comparing_str %} {% include "wagtailadmin/shared/header.html" with title=comparing_str subtitle=page.get_admin_display_title icon="doc-empty-inverse" %}

{% trans "Edit this page" %} {% trans "View revisions" %}

{% for comp in comparison %} {% empty %} {% endfor %}
{% trans "Fields" %} {% trans "Changes" %}
{{ comp.field_label }}:
{% if comp.is_field %} {{ comp.htmldiff }} {% elif comp.is_child_relation %} {% for child_comp in comp.get_child_comparisons %}
{% with child_comp.get_position_change as move %} {% if move %}

{% if move > 0 %} {% blocktrans count counter=move %} Moved down 1 place. {% plural %} Moved down {{ counter }} places. {% endblocktrans %} {% elif move < 0 %} {% blocktrans count counter=move|abs %} Moved up 1 place. {% plural %} Moved up {{ counter }} places. {% endblocktrans %} {% endif %}

{% endif %} {% endwith %}
{% for field_comp in child_comp.get_field_comparisons %}
{{ field_comp.field_label }}
{{ field_comp.htmldiff }}
{% endfor %}
{% endfor %} {% endif %}

{% trans "There are no differences between these two revisions" %}

{% endblock %} {% block extra_css %} {{ block.super }} {% endblock %}