Localize error pages & update lang in html tag
This commit is contained in:
parent
232ac6193a
commit
ff8328b4e3
6 changed files with 63 additions and 24 deletions
|
@ -1,18 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% load i18n %}
|
||||
<html lang="{% get_current_language %}">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>500 - Server Error</title>
|
||||
<title>{% trans "500 - Server Error" %}</title>
|
||||
|
||||
<!-- UIkit CSS -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.23.6/dist/css/uikit.min.css" />
|
||||
|
||||
<!-- UIkit JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/uikit@3.23.6/dist/js/uikit.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/uikit@3.23.6/dist/js/uikit-icons.min.js"></script>
|
||||
|
||||
<!-- Redirect to homepage after 3s -->
|
||||
<meta http-equiv="refresh" content="3;url=/" />
|
||||
</head>
|
||||
<body class="uk-background-muted uk-light">
|
||||
|
@ -22,11 +19,11 @@
|
|||
<span uk-icon="icon: bolt; ratio: 4" class="uk-text-danger uk-animation-fade"></span>
|
||||
<h1 class="uk-heading-medium uk-heading-hero@s uk-text-bold uk-margin-small-top">500</h1>
|
||||
<p class="uk-text-large uk-text-muted">
|
||||
Oops! Something went wrong on our end.<br>
|
||||
We’re working to fix it — you’ll be redirected shortly.
|
||||
{% trans "Oops! Something went wrong on our end." %}<br>
|
||||
{% trans "We’re working to fix it — you’ll be redirected shortly." %}
|
||||
</p>
|
||||
<a href="/" class="uk-button uk-button-primary uk-margin-top">
|
||||
<span uk-icon="home"></span> Return to homepage
|
||||
<span uk-icon="home"></span> {% trans "Return to homepage" %}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue