Add 500 page template

This commit is contained in:
igorkorenfeld 2023-05-08 11:54:45 -04:00
parent d1dea7fecd
commit 85d0152c3c
No known key found for this signature in database
GPG key ID: 826947A4B867F659

View file

@ -1,24 +1,39 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n static %}
{% block title %}{% translate "Server error" %}{% endblock %} {% block title %}{% translate "Server error" %}{% endblock %}
{% block content %} {% block content %}
<main id="main-content" class="grid-container"> <main id="main-content" class="grid-container">
<h1>{% translate "Server Error" %}</h1> <div class="grid-row grid-gap">
<div class="tablet:grid-col-6 usa-prose margin-bottom-3">
<h1>
{% translate "We're having some trouble" %}
</h1>
<h2>
{% translate "Status 500 server error" %}
</h2>
{% if friendly_message %}
<p>{{ friendly_message }}</p>
{% else %}
<p>
Sorry! Try waiting a few minutes and then reloading the page.
<a href="https://federalist-877ab29f-16f6-4f12-961c-96cf064cf070.sites.pages.cloud.gov/site/cisagov/getgov-home/contact/"> Contact us </a> if you need help.
</p>
{% endif %}
{% if friendly_message %} {% if log_identifier %}
<p>{{ friendly_message }}</p> <p>Here's a unique identifier for this error.</p>
{% else %} <p class="text-semibold">{{ log_identifier }}</p>
<p>{% translate "An internal server error occurred." %}</p> <p>{% translate "Please include it if you contact us." %}</p>
{% endif %} {% endif %}
</div>
{% if log_identifier %} <div class="tablet:grid-col-4 flex-align-self-end">
<p>Here's a unique identifier for this error.</p> <img
<blockquote>{{ log_identifier }}</blockquote> src="{%static 'img/registrar/dotgov_500_illo.svg' %}"
<p>{% translate "Please include it if you contact us." %}</p> alt=""
{% endif %} />
</div>
TODO: Content team to create a "how to contact us" footer for the error pages </div>
</main> </main>
{% endblock %} {% endblock %}