{% extends 'paxalia/base.html' %} {% load static i18n %} {% block title %}{% trans "Security Center" %} – Paxalia Analytics{% endblock %} {% block page_title %}{% trans "Security Center" %}{% endblock %} {% block page_subtitle %}{% trans "Application posture, server runtime, authentication, and audit evidence" %}{% endblock %} {% block extra_css %} {% endblock %} {% block dashboard_content %}
{% if not dependency_health.django_supported %}
{% blocktrans with version=dependency_health.django_version %}Running Django {{ version }}, which isn't in this package's known-supported list. Check djangoproject.com for your version's support status.{% endblocktrans %}
{% endif %}
{% trans "Successful logins (30d)" %} {{ total_success_30d }}
{% trans "Failed logins (30d)" %} {{ total_failed_30d }}
{% trans "New-location logins (30d)" %} {{ new_location_logins_30d }}
{% trans "Active sessions" %} {{ active_sessions|length }}
{% if mfa_status is not None %} {% endif %}

{% trans "Recent Login Activity" %}

{% if recent_logins %} {% for e in recent_logins %} {% endfor %}
{% trans "When" %} {% trans "User" %} {% trans "Result" %} {% trans "IP" %} {% trans "Location" %} {% trans "Device" %} {% trans "New?" %} {% trans "Session" %}
{{ e.created_at|date:"Y-m-d H:i" }} {{ e.user.get_username|default:e.username_attempted|default:"—" }} {{ e.get_result_display }} {{ e.ip_address|default:"—" }} {% if e.city or e.country_name %}{{ e.city }}{% if e.city and e.country_name %}, {% endif %}{{ e.country_name }}{% else %}—{% endif %} {{ e.browser }} / {{ e.os }} {% if e.is_new_location %}{% trans "Yes" %}{% else %}—{% endif %} {% if e.is_active_session %}
{% csrf_token %}
{% elif e.result == 'success' %} {% trans "ended" %} {% else %}—{% endif %}
{% else %}
{% trans "No login activity recorded yet." %}
{% endif %}
{% if mfa_status is not None %} {% endif %}
{% endblock %} {% block page_scripts %} {% endblock %}