Remove localization from static error pages
This commit is contained in:
parent
ff8328b4e3
commit
486a893530
2 changed files with 18 additions and 14 deletions
|
@ -1,12 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
{% load i18n %}
|
||||
<html lang="{% get_current_language %}">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{% trans "404 - Page not found" %}</title>
|
||||
<title>404 - Page not found</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>
|
||||
|
||||
|
@ -19,11 +21,11 @@
|
|||
<span uk-icon="icon: warning; 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">404</h1>
|
||||
<p class="uk-text-large uk-text-muted">
|
||||
{% trans "Sorry, we couldn’t find the page you were looking for." %}<br>
|
||||
{% trans "You’ll be redirected to the homepage in a few seconds." %}
|
||||
Sorry, we couldn’t find the page you were looking for.<br>
|
||||
You’ll be redirected to the homepage in a few seconds.
|
||||
</p>
|
||||
<a href="/" class="uk-button uk-button-primary uk-margin-top">
|
||||
<span uk-icon="home"></span> {% trans "Return to homepage" %}
|
||||
<span uk-icon="home"></span> Return to homepage
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
{% load i18n %}
|
||||
<html lang="{% get_current_language %}">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{% trans "500 - Server Error" %}</title>
|
||||
<title>404 - Page not found</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>
|
||||
|
||||
|
@ -16,14 +18,14 @@
|
|||
|
||||
<div class="uk-section uk-section-large uk-flex uk-flex-middle uk-text-center uk-background-secondary" style="height: 100vh;">
|
||||
<div class="uk-container">
|
||||
<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>
|
||||
<span uk-icon="icon: warning; 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">404</h1>
|
||||
<p class="uk-text-large uk-text-muted">
|
||||
{% trans "Oops! Something went wrong on our end." %}<br>
|
||||
{% trans "We’re working to fix it — you’ll be redirected shortly." %}
|
||||
Sorry, we couldn’t find the page you were looking for.<br>
|
||||
You’ll be redirected to the homepage in a few seconds.
|
||||
</p>
|
||||
<a href="/" class="uk-button uk-button-primary uk-margin-top">
|
||||
<span uk-icon="home"></span> {% trans "Return to homepage" %}
|
||||
<span uk-icon="home"></span> Return to homepage
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue