Fixes #19122: Fix styling of the server error (500) page (#19126)

This commit is contained in:
Jeremy Stretch 2025-04-09 17:57:25 -04:00 committed by GitHub
parent 13c20957a6
commit 457fb977a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,30 +4,30 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>{% trans "Server Error" %}</title> <title>{% trans "Server Error" %}</title>
<link rel="stylesheet" href="{% static 'netbox-light.css'%}" /> <link rel="stylesheet" href="{% static 'netbox.css'%}" />
<meta charset="UTF-8"> <meta charset="UTF-8">
</head> </head>
<body> <body>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<div class="col col-md-6 offset-md-3"> <div class="col col-md-6 offset-md-3">
<div class="card border-danger mt-5"> <div class="card border-danger mt-5">
<h2 class="card-header"> <h2 class="card-header text-bg-danger">
<i class="mdi mdi-alert"></i> {% trans "Server Error" %} <i class="mdi mdi-alert"></i> {% trans "Server Error" %}
</h2> </h2>
<div class="card-body"> <div class="card-body">
{% block message %} {% block message %}
<p> <p>
{% trans "There was a problem with your request. Please contact an administrator" %}. {% trans "There was a problem with your request. Please contact an administrator" %}.
</p> </p>
{% endblock %} {% endblock %}
<hr /> <hr />
<p> <p>
{% trans "The complete exception is provided below" %}: {% trans "The complete exception is provided below" %}:
</p> </p>
<pre class="block"><strong>{{ exception }}</strong><br /> <pre class="block"><strong>{{ exception }}</strong><br />
{{ error }} {{ error }}
{% trans "Python version" %}: {{ python_version }} {% trans "Python version" %}: {{ python_version }}
@ -35,17 +35,17 @@
{% trans "Plugins" %}: {% for plugin, version in plugins.items %} {% trans "Plugins" %}: {% for plugin, version in plugins.items %}
{{ plugin }}: {{ version }}{% empty %}{% trans "None installed" %}{% endfor %} {{ plugin }}: {{ version }}{% empty %}{% trans "None installed" %}{% endfor %}
</pre> </pre>
<p> <p>
{% trans "If further assistance is required, please post to the" %} <a href="https://github.com/netbox-community/netbox/discussions">{% trans "NetBox discussion forum" %}</a> {% trans "on GitHub" %}. {% trans "If further assistance is required, please post to the" %} <a href="https://github.com/netbox-community/netbox/discussions">{% trans "NetBox discussion forum" %}</a> {% trans "on GitHub" %}.
</p> </p>
<div class="text-end"> <div class="text-end">
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Home Page" %}</a> <a href="{% url 'home' %}" class="btn btn-primary">{% trans "Home Page" %}</a>
</div>
</div>
</div>
</div> </div>
</div>
</div> </div>
</div>
</div> </div>
</div>
</body> </body>
</html> </html>