From 85d0152c3cca0e42f123d7587d2fc7af2c83af3f Mon Sep 17 00:00:00 2001 From: igorkorenfeld Date: Mon, 8 May 2023 11:54:45 -0400 Subject: [PATCH] Add 500 page template --- src/registrar/templates/500.html | 45 +++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/src/registrar/templates/500.html b/src/registrar/templates/500.html index 5fbd30d2d..b3061dadd 100644 --- a/src/registrar/templates/500.html +++ b/src/registrar/templates/500.html @@ -1,24 +1,39 @@ {% extends "base.html" %} -{% load i18n %} +{% load i18n static %} {% block title %}{% translate "Server error" %}{% endblock %} {% block content %}
-

{% translate "Server Error" %}

+
+
+

+ {% translate "We're having some trouble" %} +

+

+ {% translate "Status 500 – server error" %} +

+ {% if friendly_message %} +

{{ friendly_message }}

+ {% else %} +

+ Sorry! Try waiting a few minutes and then reloading the page. + Contact us if you need help. +

+ {% endif %} - {% if friendly_message %} -

{{ friendly_message }}

- {% else %} -

{% translate "An internal server error occurred." %}

- {% endif %} - - {% if log_identifier %} -

Here's a unique identifier for this error.

-
{{ log_identifier }}
-

{% translate "Please include it if you contact us." %}

- {% endif %} - - TODO: Content team to create a "how to contact us" footer for the error pages + {% if log_identifier %} +

Here's a unique identifier for this error.

+

{{ log_identifier }}

+

{% translate "Please include it if you contact us." %}

+ {% endif %} +
+
+ +
+
{% endblock %}