From 45f89df858c68459c4dd4347d82b085fc9735590 Mon Sep 17 00:00:00 2001 From: traxys Date: Mon, 28 Aug 2023 22:07:40 +0200 Subject: [PATCH] Use bootstrap --- templates/base.html | 26 ++++++++++++++++++++++++++ templates/error.html | 29 ++++++++++------------------- templates/home.html | 33 ++++++++++++--------------------- templates/not_found.html | 29 ++++++++++------------------- 4 files changed, 58 insertions(+), 59 deletions(-) create mode 100644 templates/base.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..fed64f1 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,26 @@ + + + + {% block head %} + + + + + + {% block title %} + {% endblock title %} + + + {% endblock head %} + + + {% block content %} + {% endblock content %} + + + diff --git a/templates/error.html b/templates/error.html index 01b85ff..a527650 100644 --- a/templates/error.html +++ b/templates/error.html @@ -1,19 +1,10 @@ - - - - - - {{ title }} - - - -
-
-

Internal Error

-
-
- - +{% extends "base.html" %} +{% block title %} + Internal Error +{% endblock title %} +{% block head %} + {{ super() }} +{% endblock head %} +{% block content %} +

Internal Error

+{% endblock content %} diff --git a/templates/home.html b/templates/home.html index f6dd9c1..bb9313b 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,25 +1,16 @@ - - - - - - {{ title }} - - - -
-
+{% extends "base.html" %} +{% block title %} + Mail management +{% endblock title %} +{% block head %} + {{ super() }} +{% endblock head %} +{% block content %} +

Mail management

Mails

    - {% for mail in mails %} -
  • {{mail.mail}}
  • - {% endfor %} + {% for mail in mails %}
  • {{ mail.mail }}
  • {% endfor %}
-
-
- - + +{% endblock content %} diff --git a/templates/not_found.html b/templates/not_found.html index 680894b..2098756 100644 --- a/templates/not_found.html +++ b/templates/not_found.html @@ -1,19 +1,10 @@ - - - - - - {{ title }} - - - -
-
-

Page not found

-
-
- - +{% extends "base.html" %} +{% block title %} + Page not found +{% endblock title %} +{% block head %} + {{ super() }} +{% endblock head %} +{% block content %} +

Page not found

+{% endblock content %}