{% extends "base.html" %} {% block title %}Audit Log — didiAI Dashboard{% endblock %} {% block content %}
Who changed what, when. Covers config changes and auth events.
| Time | User | Action | Target | From | To |
|---|---|---|---|---|---|
| {{ entry.timestamp.strftime('%m-%d %H:%M:%S') if entry.timestamp else '—' }} | {{ entry.username }} | {% set action_color = { 'config.set': 'bg-indigo-900/50 text-indigo-300 border-indigo-800', 'config.reset': 'bg-amber-900/50 text-amber-300 border-amber-800', 'config.delete': 'bg-rose-900/50 text-rose-300 border-rose-800', } %} {{ entry.action }} | {{ entry.target or '—' }} | {{ entry.old_value|tojson if entry.old_value is not none else '—' }} | {{ entry.new_value|tojson if entry.new_value is not none else '—' }} |
| No audit entries yet. | |||||