{% extends "base.html" %} {% block title %}{{ branding.status_page_title }} โ€” {{ branding.site_name }}{% endblock %} {% block content %}

{% if overall_status == 'operational' %}All Systems Operational {% elif overall_status == 'degraded' %}Partial System Issues {% else %}Major Outage{% endif %}

Last checked {{ checked_at|date:"M j, Y g:i A T" }}

{% if components %}

System Status

{% for c in components %} {% endfor %}
ComponentStatusDetails
{{ c.name }} {{ c.get_status_display }} {% if c.status_reason and c.status != 'operational' %}{{ c.status_reason }}{% elif c.description %}{{ c.description }}{% else %}โ€”{% endif %}
{% else %}

Web Application

{% if app_ok %}Operational{% else %}Down{% endif %}

Database

{% if db_ok %}Connected{% else %}Unavailable{% endif %} {% if not db_ok %}

{{ db_msg }}

{% endif %}
{% endif %} {% if active_incidents %}

Active Incidents

{% for inc in active_incidents %}

{{ inc.title }} {{ inc.get_status_display }}

{{ inc.description }}

{% if inc.cause %}

Cause: {{ inc.cause }}

{% endif %}

Started {{ inc.started_at|date:"M j, Y g:i A" }} ยท Severity: {{ inc.get_severity_display }}

{% endfor %}
{% endif %} {% if recent_incidents %}

Incident History

{% for inc in recent_incidents %}
{{ inc.title }} {{ inc.get_status_display }}

{{ inc.started_at|date:"M j, Y" }}{% if inc.resolved_at %} โ€” Resolved {{ inc.resolved_at|date:"M j, Y" }}{% endif %}

{% if inc.resolution %}

{{ inc.resolution }}

{% endif %}
{% empty %}

No incidents recorded.

{% endfor %}
{% endif %} {% if user.is_authenticated and user.can_manage_status %}

Manage Incidents

{% endif %} {% endblock %}