{% extends "apostrophe-modal:base.html" %} {% import 'apostrophe-ui:components/buttons.html' as buttons with context %} {%- block modalClass -%} apos-versions-modal {%- endblock -%} {% block controls %}
{{ buttons.minor('Finished', { action: 'cancel' }) }}
{% endblock %} {% block label %} {{ __('Versions') }} {% endblock %} {% block body %}
{# Loop over all versions and render changes in each one #} {% for version in data.versions %}
{# #}
{{ version.author }}made changes on

{{ version.createdAt | date(__('MM/DD/YY[ at ]h:mma')) }}


{%- if version._previous -%}
See Changes
{%- endif -%}
{# #}{{ buttons.major('Revert', { action: 'revert', value: version._id })}}{# #}
{% if version._previous -%} {# JS populates me #}
{%- endif %}
{% endfor %}
{% endblock %} {% block footerContainer %}{% endblock %}