{% load i18n icons permissions translations user_display %} {% translate "Origin:" context "Change metadata badge label" as origin_prefix %} {% translate "IP address:" context "Change metadata badge label" as ip_prefix %} {% translate "IP address recorded for this change." context "Change metadata tooltip" as ip_description %} {% for item in changes_with_context %} {% empty %} {% endfor %}
{% user_display item.change.user resource=item.change %} {% if item.origin %} {% include "snippets/history-badge.html" with label=item.origin description=item.origin_description prefix=origin_prefix in_email=in_email only %} {% endif %} {% if item.ip_address %} {% include "snippets/history-badge.html" with label=item.ip_address description=ip_description prefix=ip_prefix in_email=in_email only %} {% endif %}

{{ item.change.get_action_display }}

{% if not in_email %}
{% if item.permissions.can_revert %}
{% csrf_token %}
{% endif %} {% if item.permissions.can_block_user %} {% icon "account-cancel.svg" %} {% endif %} {% if debug %} {% icon "bell.svg" %} {% endif %} {% icon "magnify-plus-outline.svg" %}
{% endif %}
{% if item.history_data.description %}{{ item.history_data.description }}{% endif %} {% for history_field in item.history_data.change_details_fields %} {{ history_field.content }} {% endfor %} {{ item.change.timestamp|naturaltime }}
{% if in_email %} {% translate "View" %} {% endif %}
{% translate "No matching activity found." %}