Skip to content

Commit 12f619b

Browse files
committed
Added missing http errors html files
1 parent 4bc78e0 commit 12f619b

File tree

5 files changed

+113
-0
lines changed

5 files changed

+113
-0
lines changed

src/templates/http_errors/400.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% extends "http_errors/error.html" %}
2+
{% load static %}
3+
{% load i18n %}
4+
5+
{% block content %}
6+
<div class="container">
7+
8+
<section class="section error-404 min-vh-100 d-flex flex-column align-items-center justify-content-center">
9+
<h1>400</h1>
10+
<h2>Sorry, the request could not be understood by the server due to malformed syntax.</h2>
11+
<a class="btn" href="{% url 'signals' %}">Back to home</a>
12+
</section>
13+
14+
</div>
15+
{% endblock %}
16+

src/templates/http_errors/403.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "http_errors/error.html" %}
2+
{% load static %}
3+
{% load i18n %}
4+
5+
{% block content %}
6+
<div class="container">
7+
<section class="section error-404 min-vh-100 d-flex flex-column align-items-center justify-content-center">
8+
<h1>403</h1>
9+
<h2>You don't have permission to access this resource.</h2>
10+
<a class="btn" href="{% url 'signals' %}">Back to home</a>
11+
</section>
12+
</div>
13+
{% endblock %}

src/templates/http_errors/404.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends "http_errors/error.html" %}
2+
3+
{% load static %}
4+
5+
{% load i18n %}
6+
7+
{% block content %}
8+
<div class="container">
9+
<section class="section error-404 min-vh-100 d-flex flex-column align-items-center justify-content-center">
10+
<h1>404</h1>
11+
<h2>Not Found</h2>
12+
<a class="btn" href="{% url 'signals' %}">Back to home</a>
13+
</section>
14+
</div>
15+
{% endblock %}

src/templates/http_errors/500.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "http_errors/error.html" %}
2+
{% load static %}
3+
{% load i18n %}
4+
5+
{% block content %}
6+
<div class="container">
7+
<section class="section error-404 min-vh-100 d-flex flex-column align-items-center justify-content-center">
8+
<h1>500</h1>
9+
<h2>Internal Server Error.</h2>
10+
<a class="btn" href="{% url 'signals' %}">Back to home</a>
11+
</section>
12+
</div>
13+
{% endblock %}

src/templates/http_errors/error.html

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{% load static %} {% load i18n %}
2+
3+
<!DOCTYPE html>
4+
<html lang="en">
5+
<head>
6+
<meta charset="utf-8" />
7+
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
8+
9+
<title>Error</title>
10+
<meta content="" name="description" />
11+
<meta content="" name="keywords" />
12+
13+
<link href="{% static 'img/DELPHI-favicon.svg' %}" rel="icon" />
14+
<link
15+
href="{% static 'img/apple-touch-icon.png' %}"
16+
rel="apple-touch-icon"
17+
/>
18+
19+
<link rel="stylesheet" href="{% static 'css/style.css' %}" />
20+
21+
<!-- Font Awesome -->
22+
<link
23+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
24+
rel="stylesheet"
25+
/>
26+
<!-- Google Fonts -->
27+
<link
28+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
29+
rel="stylesheet"
30+
/>
31+
<!-- MDB -->
32+
<link
33+
href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/7.3.2/mdb.min.css"
34+
rel="stylesheet"
35+
/>
36+
37+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
38+
</head>
39+
40+
<body>
41+
<main>
42+
43+
{% block content %}
44+
45+
{% endblock %}
46+
</main>
47+
<!-- End #main -->
48+
49+
<!-- MDB -->
50+
<script
51+
type="text/javascript"
52+
src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/7.3.2/mdb.umd.min.js"
53+
></script>
54+
55+
</body>
56+
</html>

0 commit comments

Comments
 (0)