Create error template

This commit is contained in:
George Lacey 2021-05-11 05:52:52 +01:00
parent 89163abbfb
commit bd032b8c3b
2 changed files with 33 additions and 29 deletions

View File

@ -1,30 +1,4 @@
{% extends "borg/base.html" %} {% extends "error.html" %}
{% load static %}
{% block title %}404: Not Found{% endblock %}
{% block style %}
body {
background-color: aliceblue;
}
.vertical-center {
min-height: 80%;
min-height: 80vh;
display: flex;
align-items: center;
}
{% endblock %}
{% block body %}
<div class="container vertical-center">
<div class="row w-100">
<h1 class="text-center display-1">404: Not Found</h1>
</div>
</div>
{% endblock %}
{% block title %}404: Page Not Found{% endblock %}
{% block error_message %}404: Page Not Found{% endblock %}

View File

@ -0,0 +1,30 @@
{% extends "borg/base.html" %}
{% load static %}
{% block title %}{% endblock %}
{% block style %}
body {
background-color: aliceblue;
}
.vertical-center {
min-height: 80%;
min-height: 80vh;
display: flex;
align-items: center;
}
{% endblock %}
{% block body %}
<div class="container vertical-center">
<div class="row w-100">
<h1 class="text-center display-1">{% block error_message %}{% endblock %}</h1>
</div>
</div>
{% endblock %}