{% extends "admin/layout.html" %} {% block title %}Deletion Log – Admin{% endblock %} {% block body %}

{% trans %}Deletion Log{% endtrans %}

{% trans %}Audit trail of all deleted files, conversions, users, teams, and shares.{% endtrans %} {{ total }} {% trans %}record(s) total.{% endtrans %}

{% if search or entity_type or actor_role or from_date or to_date %} {% trans %}Clear{% endtrans %} {% endif %}
{% if entries %}
{% for entry in entries %} {% set type_colors = { 'file': 'bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400', 'conversion': 'bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400', 'share': 'bg-indigo-100 text-indigo-700 dark:bg-indigo-900/30 dark:text-indigo-400', 'team': 'bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400', 'team_member': 'bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400', 'user': 'bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400', } %} {% set role_colors = { 'admin': 'bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400', 'scheduler': 'bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400', 'user': 'bg-teal-100 text-teal-700 dark:bg-teal-900/30 dark:text-teal-400', 'team_member': 'bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400', 'api': 'bg-cyan-100 text-cyan-700 dark:bg-cyan-900/30 dark:text-cyan-400', } %} {% endfor %}
{% trans %}When{% endtrans %} {% trans %}Type{% endtrans %} {% trans %}Item Name{% endtrans %} {% trans %}Actor{% endtrans %} {% trans %}Role{% endtrans %} {% trans %}Size{% endtrans %} {% trans %}Details{% endtrans %}
{{ entry.deleted_at[:16].replace('T', ' ') if entry.deleted_at else '—' }} {{ entry.entity_type | replace('_', ' ') | title }} {{ entry.entity_name or '—' }} {% if entry.actor_username %} {{ entry.actor_username }} {% if entry.actor_user_id %} #{{ entry.actor_user_id }} {% endif %} {% else %}—{% endif %} {{ entry.actor_role | title }} {% if entry.file_size_bytes %} {% set sz = entry.file_size_bytes %} {% if sz >= 1073741824 %}{{ '%.1f' | format(sz / 1073741824) }} GB {% elif sz >= 1048576 %}{{ '%.1f' | format(sz / 1048576) }} MB {% elif sz >= 1024 %}{{ '%.0f' | format(sz / 1024) }} KB {% else %}{{ sz }} B{% endif %} {% else %}—{% endif %} {% if entry.team_name %} {{ entry.team_name }} {% endif %} {% if entry.extra_meta and entry.extra_meta != '{}' %} {%- set meta = entry.extra_meta | tojson -%} meta {% endif %}
{% if total_pages > 1 %}

{% trans %}Page{% endtrans %} {{ page }} {% trans %}of{% endtrans %} {{ total_pages }}

{% if page > 1 %} {% trans %}Previous{% endtrans %} {% endif %} {% if page < total_pages %} {% trans %}Next{% endtrans %} {% endif %}
{% endif %} {% else %}

{% trans %}No deletion events recorded yet.{% endtrans %}

{% if search or entity_type or actor_role %} {% trans %}Clear filters{% endtrans %} {% endif %}
{% endif %}
{% endblock %}