{% extends 'partials/base.html.twig' %} {% block titlebar %}
{% if action == 'list-revisions' %} {{ "PLUGIN_ADMIN.BACK"|tu }} {% endif %} {% if action == 'diff' %} {{ "PLUGIN_ADMIN.BACK"|tu }} Revert Delete {% endif %} {% if action == 'list-pages' %} Delete All {% endif %}
{% if action == 'list-pages' or action == 'list-revisions' %}

Manage Revisions

{% endif %} {% if action == 'diff' %}

Manage Revision

{% endif %} {% endblock %} {% block content %}

{{ context.title ?: 'Pages' }}

{% if action == 'list-pages' %}
{% for page in revPages %} {% if page.revisions > 0 %}
{{ page.title }} ({{ page.revisions }}) ({{ page.lastRevision|nicetime(true) }})
{% else %}
{{ page.title }} ({{ page.revisions }})
{% endif %} {% endfor %}
{% endif %} {% if action == 'list-revisions' %}

Revisions

{% for revision in revisions.instances|reverse %} {% if loop.first %}
{{ revision.name }} (Current)
{% else %}
{{ revision.name }} ({{ revision.createdAt|nicetime(true) }})
{% endif %} {% endfor %}
{% endif %} {% if action == 'diff' %}

All changes since the {{ revision.name }} revision (Comparing {{ revision.name }} to current content)

{% if added is not empty %}

Added

{% endif %} {% if removed is not empty %}

Removed

{% endif %} {% if renamed is not empty %}

Renamed

{% endif %} {% if changed is not empty %}

Changes

{% for file in changed %}
{{ file.filename }} {% if file.type == 'text' %}
{{ file.diff|raw }}
{% elseif file.type == 'image' %}
{% endif %}
{% endfor %}
{% endif %} {% if equal is not empty %}

No changes

{% endif %} {% endif %}

{{ "PLUGIN_ADMIN.MODAL_DELETE_PAGE_CONFIRMATION_REQUIRED_TITLE"|tu }}


{{ "PLUGIN_ADMIN.CONTINUE"|tu }}
{% endblock %}