{% load helpers %} {% load get_status %} {% if changelog and perms.extras.view_objectchange %}

User | Action | Type | Object | Time |
--- | --- | --- | --- | --- | ---
{% for change in changelog %}
{{ change.user|default:change.user_name }} | {{ change.get_action_display|bettertitle }} | {{ change.changed_object_type.name|bettertitle }} | {% if change.changed_object.get_absolute_url %} {{ change.changed_object }} {% else %} {{ change.changed_object|default:change.object_repr }} {% endif %} | {{ change.time|date:'SHORT_DATETIME_FORMAT' }} |
{% endfor %}

{% elif perms.extras.view_objectchange %}
No change history found.
{% else %}
{{ request.user|truncatechars:"30" }} does not have permission to view changes.
{% endif %}