{% extends "paxalia/base.html" %} {% load static i18n %} {% block title %}{% trans "Paxalia Admin" %}{% endblock %} {% block page_title %}{% trans "Paxalia Admin" %}{% endblock %} {% block page_subtitle %}{% trans "Your Django administration command center inside Paxalia Dashboard" %}{% endblock %} {% block extra_css %}{% endblock %} {% block dashboard_content %}
{% trans "Dashboard" %}{% trans "Administration" %}
{% trans "Paxalia control plane" %}

{% trans "Administration, organized" %}

{% trans "Inspect registered models, manage records, review activity, localize content, move structured data, and fall back to Django Admin only when a project-specific surface needs it." %}

{% if configuration_issues %}
{% trans "Configuration" %}

{% trans "Review Admin configuration" %}

{{ configuration_issues|length }} {% trans "issue(s)" %}
{% for issue in configuration_issues|slice:":8" %}
{{ issue.level|upper }}{{ issue.message }}
{% endfor %}
{% endif %}
{% trans "At a glance" %}

{% trans "Administration summary" %}

{% trans "Applications" %}{{ application_count }}{% trans "registered Django apps" %}
{% trans "Models" %}{{ model_count }}{% trans "available through the registry" %}
{% trans "Writable" %}{{ writable_count }}{% trans "models with management permissions" %}
{% trans "Localized" %}{{ localized_count }}{% trans "translation-aware models" %}
{% trans "Protected" %}{{ protected_count }}{% trans "models needing extra care" %}
{% trans "Tools" %}

{% trans "Admin workspace" %}

{% trans "Open a focused surface for the task instead of carrying the full registry everywhere." %}

{% trans "Localization" %}

{% trans "Multilingual content" %}

{% blocktrans with count=localized_count %}{{ count }} registered models expose a recognized localization capability. Open a model's Localization workspace to inspect language completeness and manage translations.{% endblocktrans %}

{% trans "Detection" %}{% trans "Automatic" %}
{% trans "Language source" %}{% trans "Django settings" %}
{% trans "Bulk workflow" %}{% trans "Package ready" %}
{% trans "Integrations" %}

{% trans "Operational command surfaces" %}

{% trans "Chat-oriented operations stay separate from record management so each surface remains focused." %}

{% trans "Slack commands" %}{% if analytics_config.SLACK_SIGNING_SECRET %}{% trans "Configured" %}{% else %}{% trans "Not configured" %}{% endif %}
{% trans "Discord interactions" %}{% if analytics_config.DISCORD_PUBLIC_KEY %}{% trans "Configured" %}{% else %}{% trans "Not configured" %}{% endif %}
{% trans "Django Admin fallback" %}{% if analytics_config.ADMIN_DJANGO_FALLBACK_ENABLED %}{% trans "Available" %}{% else %}{% trans "Disabled" %}{% endif %}
{% trans "Registry" %}

{% trans "Registered models" %}

{% trans "Django's admin registry remains the source of truth for the model surface." %}

{% trans "View all models" %}
{% for app in app_cards %}
{{ app.app_label }}

{{ app.app_verbose_name }}

{{ app.definitions|length }}
{% for item in app.definitions %}
{{ item.definition.label }}

{{ item.definition.verbose_name_plural }}

{% if item.capabilities.search %}{% trans "Search" %}{% endif %}{% if item.capabilities.filters %}{% trans "Filters" %}{% endif %}{% if item.capabilities.actions %}{% trans "Actions" %}{% endif %}{% if item.capabilities.relationships %}{% trans "Relations" %}{% endif %}{% if item.capabilities.localization %}{% trans "Localization" %}{% endif %}{% if item.capabilities.import_export %}{% trans "Packages" %}{% endif %}{% if item.capabilities.protected %}{% trans "Protected" %}{% endif %}
{% endfor %}
{% empty %}

{% trans "No models are available" %}

{% trans "Register models with Django's admin.site to make them available in Paxalia Admin." %}

{% endfor %}
{% trans "Activity" %}

{% trans "Recent activity" %}

{% trans "Recent administrative changes and operational signals." %}

{% trans "Open audit" %}
{% trans "Paxalia audit" %}

{% trans "Administrative changes" %}

{% for item in recent_changes %}
{{ item.action }}{% if item.user %}{{ item.user }}{% else %}{% trans "System" %}{% endif %} · {{ item.detail }}
{% empty %}

{% trans "No Paxalia Admin changes have been recorded yet." %}

{% endfor %}
{% trans "Django audit" %}

{% trans "Admin log entries" %}

{% for item in recent_django_actions %}
{{ item.action.get_action_flag_display }}{% if item.action.content_type %}{{ item.action.content_type }}{% else %}{% trans "Unknown model" %}{% endif %} · {{ item.object_repr }}
{% empty %}

{% trans "No Django Admin log entries are available." %}

{% endfor %}
{% trans "Authentication" %}

{% trans "Login activity" %}

{% for item in recent_logins %}
{{ item.event_type }} · {{ item.result }}{% if item.user %}{{ item.user }}{% elif item.username_attempted %}{{ item.username_attempted }}{% else %}{% trans "Unresolved account" %}{% endif %}
{% empty %}

{% trans "No login activity is available." %}

{% endfor %}
{% endblock %} {% block page_scripts %}{% endblock %}