{% load i18n %} {% load url from simple_history_compat %} {% load admin_urls %} {% load getattribute from getattributes %} {% for column in history_list_display %} {% endfor %} {% for record in page_obj %} {% for column in history_list_display %} {% endfor %} {% endfor %}
{% trans 'Object' %}{% trans column %}{% trans 'Date/time' %} {% trans 'Comment' %} {% trans 'Changed by' %} {% trans 'Change reason' %} {% trans 'Changes' %}
{{ record.history_object }} {{ record|getattribute:column }}{{ record.history_date }} {{ record.get_history_type_display }} {% if record.history_user %} {% url admin_user_view record.history_user_id as admin_user_url %} {% if admin_user_url %} {{ record.history_user }} {% else %} {{ record.history_user }} {% endif %} {% else %} {% trans "None" %} {% endif %} {{ record.history_change_reason }} {% block history_delta_changes %} {% if record.history_delta_changes %}
    {% for change in record.history_delta_changes %}
  • {{ change.field }}: {{ change.old }} {# Add some spacing, and prevent having the arrow point to the edge of the page if `new` is wrapped #}  →  {{ change.new }}
  • {% endfor %}
{% endif %} {% endblock %}

{% if pagination_required %} {% for i in page_range %} {% if i == page_obj.paginator.ELLIPSIS %} {{ page_obj.paginator.ELLIPSIS }} {% elif i == page_obj.number %} {{ i }} {% else %} {{ i }} {% endif %} {% endfor %} {% endif %} {{ page_obj.paginator.count }} {% blocktranslate count counter=page_obj.paginator.count %}entry{% plural %}entries{% endblocktranslate %}