{% extends "base.html" %} {% from "macros.html" import icon %} {% block title %}{{ error_title }}{% endblock %} {% block content %}
{# Error icon #}
{% if error_code == 403 %} {{ icon('shield-off', 56, 'empty-icon') }} {% elif error_code == 404 %} {{ icon('search', 56, 'empty-icon') }} {% elif error_code == 500 %} {{ icon('alert-triangle', 56, 'empty-icon') }} {% else %} {{ icon('x-circle', 56, 'empty-icon') }} {% endif %}
{# Error code badge #}
{{ t('Error') }} {{ error_code }}
{# Error title #}

{{ error_title }}

{# Error message #}

{{ error_message }}

{# Actions #}
{% if error_code == 403 %} {{ icon('log-in', 14) }} {{ t('Login') }} {{ icon('home', 14) }} {{ t('Go to Dashboard') }} {% elif error_code == 404 %} {{ icon('arrow-left', 14) }} {{ t('Go Back') }} {{ icon('home', 14) }} {{ t('Go to Dashboard') }} {% elif error_code == 500 %} {{ icon('refresh-cw', 14) }} {{ t('Retry') }} {{ icon('home', 14) }} {{ t('Go to Dashboard') }} {% else %} {{ icon('home', 14) }} {{ t('Go to Dashboard') }} {% endif %}
{# Additional help text #} {% if error_code == 500 %}

{{ icon('info', 14) }} {{ t('If the problem persists, please contact your administrator.') }}

{% endif %}
{% endblock %}