{% extends "admin_base" %} {% block extra_css %}{{ super() }} {% endblock %} {% block title %}Timeline — Historique{% endblock %} {% block breadcrumb %} / Historique / Timeline {% endblock %} {% block content %}

# {% if filter_type == "object" %} Historique — {{ filter_resource }} #{{ filter_object_id }} {% elif filter_type == "user" %} Activité de l'admin #{{ filter_user_id }} {% elif filter_type == "resource" %} Historique — table {{ filter_resource }} {% else %} Timeline complète {% endif %}

{{ total }} entrée{% if total != 1 %}s{% endif %}

← Historique
Filtres actifs : {% if filter_user_id %} Admin #{{ filter_user_id }} {% endif %} {% if filter_resource %} Table : {{ filter_resource }} {% endif %} {% if filter_object_id %} Objet #{{ filter_object_id }} {% endif %} {% if not filter_user_id and not filter_resource and not filter_object_id %} Aucun {% endif %}

Date {% if not filter_user_id %} | Utilisateur{% endif %} {% if not filter_resource %} | Ressource{% endif %} {% if not filter_object_id %} | Objet{% endif %} | Action |
--- | --- | --- | --- | --- | ---
{% if entries %} {% for entry in entries %}
{{ entry.created_at | format_date }} {% if not filter_user_id %} | {{ entry.username }} {% endif %} {% if not filter_resource %} | {{ entry.resource_key }} {% endif %} {% if not filter_object_id %} | {% if entry.object_pk and entry.object_pk != "" %} {{ entry.object_pk }} {% else %} — {% endif %} {% endif %} | {% if entry.action == "create" %}créé {% elif entry.action == "edit" %}modifié {% elif entry.action == "delete" %}supprimé {% else %}{{ entry.action }}{% endif %} | {% if entry.summary %} {% endif %}
{% endfor %} {% else %}
Aucune action enregistrée
{% endif %}

{% if total_pages > 1 %}
{% if page > 1 %} ← Précédent {% else %} {% endif %} Page {{ page }} / {{ total_pages }} {% if page < total_pages %} Suivant → {% else %} {% endif %}
{% endif %}
{% endblock %}