From 43838cff9b4ecb8b9f1a2ffbf4023c1173ef1941 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 4 Nov 2013 00:03:26 +0100 Subject: [PATCH] add customization includes / templates for base template (add stuff to head and body) --- nsupdate/main/templates/main/home.html | 4 ++++ nsupdate/main/templates/main/includes/home_html_head.html | 1 + nsupdate/templates/base.html | 1 + 3 files changed, 6 insertions(+) create mode 100644 nsupdate/main/templates/main/includes/home_html_head.html diff --git a/nsupdate/main/templates/main/home.html b/nsupdate/main/templates/main/home.html index 00fee1a..149109e 100644 --- a/nsupdate/main/templates/main/home.html +++ b/nsupdate/main/templates/main/home.html @@ -2,6 +2,10 @@ {% load bootstrap %} {% load static %} +{% block html_head %} +{% include "main/includes/home_html_head.html" %} +{% endblock %} + {% block content %} {% include "main/includes/home_top.html" %}
diff --git a/nsupdate/main/templates/main/includes/home_html_head.html b/nsupdate/main/templates/main/includes/home_html_head.html new file mode 100644 index 0000000..e3f473c --- /dev/null +++ b/nsupdate/main/templates/main/includes/home_html_head.html @@ -0,0 +1 @@ +{# here you can add to html head of the home view (only) #} diff --git a/nsupdate/templates/base.html b/nsupdate/templates/base.html index 0937611..3f1ecd7 100644 --- a/nsupdate/templates/base.html +++ b/nsupdate/templates/base.html @@ -15,6 +15,7 @@ {% include "includes/base_head.html" %} + {% block html_head %}{% endblock %}