{% load static %} {% load i18n %} {% load audit_filters %}
{% if histories %} {% for history in histories %}
{{ history.timestamp|date:"M. d, Y" }} , {{ history.timestamp|date:"g:i A" }}
{% if history.actor.employee_get %} {% else %} {% endif %}
{% if history.actor.employee_get %} {{history.actor.employee_get.get_full_name}} {% else %} Horilla Bot {% endif %}
{% if history.action == 0 %} {% trans "Created" %} {{model_name|verbose_name}} {% elif history.action == 1 %} {% trans "Updated" %} {{model_name|verbose_name}} {% endif %}

{% for change,value in history.changes_dict.items %} {% if value.type == 'm2m' %}
- {{model_name|verbose_name:change}} {{value.objects|join:", "}}
{% endif %} {% endfor %} {% for change,value in history.changes_display_dict.items %} {% if not value.0 == "type" %}
- {{change}} ({{value.0}}) ({{value.1}})
{% endif %} {% endfor %}

{% if histories.has_next and forloop.last %}
{% endif %}
{% endfor %} {% else %}

##### {% trans "No history found." %}

{% endif %}