{% 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 %} {% translate "This translation is locked." as lock_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 item.history_data.description %}{{ item.history_data.description }}{% endif %} {% if in_email and item.change.pk and item.history_data.preview_truncated %} {% translate "View full change" %} {% endif %} {% for history_field in item.history_data.change_details_fields %} {{ history_field.content }} {% endfor %} {{ item.change.timestamp|naturaltime }}
{% if in_email %} {% translate "View" %} {% elif item.show_change_link or item.can_open_related or item.permissions.can_revert or item.permissions.can_block_user or item.show_notification_link %}
{% if item.show_change_link %} {% if item.history_data.preview_truncated %} {% translate "View full change" %} {% else %} {% translate "View change" %} {% endif %} {% elif item.can_open_related %} {% translate "Open related item" %} {% endif %} {% if item.permissions.can_revert or item.permissions.can_block_user or item.show_notification_link or item.can_open_related and item.show_change_link %} {% endif %}
{% endif %}
{% translate "No matching activity found." %}