From f5f1218a2f894deb9b38e58df97758f7b79e60e1 Mon Sep 17 00:00:00 2001 From: erichhasl Date: Sat, 18 Nov 2017 13:40:56 +0100 Subject: [PATCH] add footer and content files --- web_dev/sas_web/startpage/templates/startpage/index.html | 2 +- web_dev/sas_web/templates/public/base.html | 6 ++---- web_dev/sas_web/templates/public/default.html | 8 ++++++++ web_dev/sas_web/templates/public/footer.html | 5 +++++ 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 web_dev/sas_web/templates/public/default.html create mode 100644 web_dev/sas_web/templates/public/footer.html diff --git a/web_dev/sas_web/startpage/templates/startpage/index.html b/web_dev/sas_web/startpage/templates/startpage/index.html index f1c3c12..8241a0f 100644 --- a/web_dev/sas_web/startpage/templates/startpage/index.html +++ b/web_dev/sas_web/startpage/templates/startpage/index.html @@ -1,4 +1,4 @@ -{% extends "public/base.html" %} +{% extends "public/default.html" %} {% block content %}

Hi

diff --git a/web_dev/sas_web/templates/public/base.html b/web_dev/sas_web/templates/public/base.html index c73cd0e..92b02f3 100644 --- a/web_dev/sas_web/templates/public/base.html +++ b/web_dev/sas_web/templates/public/base.html @@ -4,11 +4,9 @@ {% include "public/header.html" %} - - {% block content %} + {% block raw_content %} {% endblock %} - -

Ende Gelände!

+ {% include "public/footer.html" %} diff --git a/web_dev/sas_web/templates/public/default.html b/web_dev/sas_web/templates/public/default.html new file mode 100644 index 0000000..6f9bdc6 --- /dev/null +++ b/web_dev/sas_web/templates/public/default.html @@ -0,0 +1,8 @@ +{% extends "public/base.html" %} + +{% block raw_content %} +
+ {% block content %} + {% endblock %} +
+{% endblock %} diff --git a/web_dev/sas_web/templates/public/footer.html b/web_dev/sas_web/templates/public/footer.html new file mode 100644 index 0000000..03c2d68 --- /dev/null +++ b/web_dev/sas_web/templates/public/footer.html @@ -0,0 +1,5 @@ +