{# One row's history, or the whole admin's activity -- the same page, because an entry reads the same either way. The activity page names the row each entry is about; a row's own history does not repeat its name forty times. No table of entries: each one has a variable number of changed fields, and a table with a nested table in every row is harder to read than a card per event with the fields inside it. #} {% extends "base.html" %} {% block content %}

{{ heading }}

{% if back_url %}
{{ ff_icon("arrow-left", size=15) }} {{ _("Back") }}
{% endif %}
{% if events %} {% for event in events %}
{{ event.verb }} {% if event.label and (event.url or event.model_title) %} {% if event.url %} {{ event.label }} {% else %} {{ event.label }} {% endif %} {% if event.model_title %} · {{ event.model_title }} {% endif %} {% endif %} {# Joined with a filter rather than with inline `{% if %}`s: the renderer trims the newline after a block tag, which glues the pieces together with no space between them. #} {{ [event.user, event.address]|select|join(" · ") }} {% if event.at %} · {% endif %}
{% if event.changes %}
{% for change in event.changes %} {% endfor %}
{{ _("Field") }} {{ _("Before") }} {{ _("After") }}
{{ change.label }} {{ change.before|ff_display }} {{ change.after|ff_display }}
{% endif %}
{% endfor %} {% if newer_url or older_url %} {% endif %} {% else %}
{{ _("Nothing recorded yet") }}

{{ _("Changes made through the admin will appear here.") }}

{% endif %} {% endblock %}