From a200a934ea12c5d5cf5276cb50d066664963c83c Mon Sep 17 00:00:00 2001 From: Mariano Riefolo Date: Sun, 15 Sep 2024 13:48:21 +0200 Subject: [PATCH] refactor: introduce base.html template and update index.html to inherit from it --- templates/base.html | 26 ++++++ templates/index.html | 214 ++++++++++++++++++------------------------- 2 files changed, 115 insertions(+), 125 deletions(-) create mode 100644 templates/base.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..bc30894 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,26 @@ + + + + + + {% block title %}{{title}}{% endblock %} + + {% block head %}{% endblock %} + + +
{% block content %}{% endblock %}
+ + + diff --git a/templates/index.html b/templates/index.html index 98dda6c..a464aeb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,130 +1,94 @@ - - - - - - Orario scolastico - - - - - - -
- - - - -

Errore: non è stato possibile caricare l'orario.

-
-
- - - + #table-title { + text-align: center; + } + +{% endblock %} {%block content %} + + + + +

Errore: non è stato possibile caricare l'orario.

+
+{% endblock %}