{% extends "admin_base" %} {% block extra_css %}{{ super() }} {% endblock %} {% block title %}Diff — {{ entry.resource_key }} #{{ entry.object_pk }}{% endblock %} {% block breadcrumb %} / Historique / Diff #{{ entry.id }} {% endblock %} {% block content %}

# Diff — {{ entry.resource_key }}

Modifications enregistrées pour cet objet

← Historique
Date {{ entry.created_at | format_date }}
Utilisateur {{ entry.username }}
Ressource {{ entry.resource_key }}
Objet {% if entry.object_pk and entry.object_pk != "" %} {{ entry.object_pk }} {% else %} — {% endif %}
Action {% if entry.action == "create" %}créé {% elif entry.action == "edit" %}modifié {% elif entry.action == "delete" %}supprimé {% else %}{{ entry.action }}{% endif %}
{% if diff_fields and diff_fields | length > 0 %}

Champ | Avant | Après
--- | --- | ---
{% for field in diff_fields %}
{{ field.key }} | {{ field.old_val }} | {{ field.new_val }}
{% endfor %}

{% else %}

Aucun champ modifié enregistré

{% endif %}
{% endblock %}