{% extends 'allianceauth/base-bs5.html' %} {% load i18n %} {% block page_title %}{% translate "Wallet Archive Export" %}{% endblock %} {% block header_nav_collapse_left %} {% include 'corptools/top_menu.html' %} {% endblock %} {% block content %} {% translate "Wallet Archive Export" as page_title %} {% include "framework/header/page-header.html" with title=page_title %}
{# Export trigger card #}
{% csrf_token %}
{% translate "Export Fixtures" %}

{% blocktranslate with days=retention_days %} Exports all NPC wallet journal entries older than {{ days }} days to Django fixture files (one chunk per run, watermarked to avoid re-exporting). {% endblocktranslate %}

{% blocktranslate with count=npc_type_count %} {{ count }} NPC ref_types are tracked for export and purge. {% endblocktranslate %}

{# Purge trigger card #}
{% csrf_token %}
{% translate "Purge NPC Wallet Data" %}

{% blocktranslate with days=retention_days %} Deletes all NPC wallet journal entries older than {{ days }} days from the database. Run the fixture export first to archive data before purging. {% endblocktranslate %}

{% blocktranslate with count=npc_type_count %} Purges the same {{ count }} NPC ref_types tracked for export. {% endblocktranslate %}

{% blocktranslate with count=total_purge_count %}{{ count }} entries eligible now{% endblocktranslate %}
{% blocktranslate with chars=char_purge_count corps=corp_purge_count total=total_purge_count %}Purgable {{ chars }} character + {{ corps }} corporation = {{ total }} total{% endblocktranslate %}
{% blocktranslate with chars=char_total_count corps=corp_total_count total=total_all_count %}Stored {{ chars }} character + {{ corps }} corporation = {{ total }} total{% endblocktranslate %}
{% widthratio total_purge_count total_all_count 100 %}% {% translate "of stored entries are eligible for purge" %}

{# Per-entity fixture listing #} {% for entity_type, present in has_fixtures.items %} {% if present %}
{% if entity_type == "characters" %}{% translate "Character" %}{% else %}{% translate "Corporation" %}{% endif %} {% translate "Fixtures" %}
{% translate "Entity" %} {% translate "File" %} {% translate "Size" %} {% translate "Exported" %}
{% endif %} {% endfor %} {% if not has_fixtures.characters and not has_fixtures.corporations %}
{% translate "No fixture files have been exported yet. Queue the export above to generate them." %}
{% endif %} {% endblock content %} {% block extra_css %} {% include "bundles/datatables-2-css-bs5.html" %} {% endblock extra_css %} {% block extra_javascript %} {% include "bundles/datatables-2-js-bs5.html" %} {% endblock extra_javascript %}