Create error template
This commit is contained in:
parent
89163abbfb
commit
bd032b8c3b
|
@ -1,30 +1,4 @@
|
|||
{% extends "borg/base.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 %}
|
||||
{% extends "error.html" %}
|
||||
|
||||
{% block title %}404: Page Not Found{% endblock %}
|
||||
{% block error_message %}404: Page Not Found{% endblock %}
|
||||
|
|
30
borgweb/borg/templates/error.html
Normal file
30
borgweb/borg/templates/error.html
Normal 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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user