{% load i18n %} {% load translations %} {% load permissions %} {% load icons %} {% for change in last_changes %} {% empty %} {% endfor %}
{% if not in_email %}
{% if change.can_revert %} {% perm 'unit.edit' change.unit as user_can_translate %} {% if user_can_translate %} {% icon "undo.svg" %} {% endif %} {% endif %} {% if change.user and not change.user.is_anonymous and change.project %} {% perm 'project.permissions' change.project as user_can_edit_permissions %} {% if user_can_edit_permissions %} {% icon "account-cancel.svg" %} {% endif %} {% endif %} {% if debug %} {% icon "bell.svg" %} {% endif %} {% icon "magnify-plus-outline.svg" %}
{% endif %} {{ change.get_user_display }}

{{ change.get_action_display }}

{% if user.is_superuser %} {% with ip_address=change.get_ip_address %} {% if ip_address %}

{{ ip_address }}

{% endif %} {% endwith %} {% endif %}
{% with details=change.get_details_display %} {% if details %} {{ details }} {% elif change.show_content and change.unit %} {% if change.details.rejection_reason %}
{% endif %} {% format_unit_source change.unit value=change.get_source %} {% format_unit_target change.unit value=change.target diff=change.old %} {% elif change.show_source %} {% if change.target %} {% format_unit_source change.unit value=change.target diff=change.old %} {% else %} {% format_unit_source change.unit %} {% endif %} {% elif change.show_diff %} {% format_unit_source change.unit value=change.target diff=change.old %} {% elif change.show_removed_string %} {% format_language_string change.details.source change.component.source_translation %} {% if change.details.target and not change.translation.is_source %} {% format_language_string change.details.target change.translation %} {% endif %} {% elif change.target %}
{{ change.target }}
{% else %} {{ change.get_action_display }} {% endif %} {% endwith %} {{ change.timestamp|naturaltime }}
{% if in_email %} {% trans "View" %} {% endif %}
{% trans "No matching activity found." %}