From e2199b283d13018d301fc102dbe08ab46a616998 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 20 Oct 2017 12:23:58 +0200 Subject: Use django-compressor to compress CSS and JS - switch to html5 page declaration --- ishtar_common/templates/base.html | 40 ++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 75e0e3740..c8248841f 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -1,11 +1,10 @@ -{% load i18n %} - - +{% load i18n compress %} + + - {% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %} - + {% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %} + {% compress js %} @@ -13,23 +12,11 @@ - + {# #} - - - - - - - {% for url_css in JQGRID_CSS %}{% endfor %} - {% include "blocks/extra_head.html" %} - {% block extra_head %} - {% endblock %} - {% if raw_css %}{% endif %} + {% endcompress %} + {% compress css %} + + + + + + + {% for url_css in JQGRID_CSS %}{% endfor %} + + {% endcompress %} + {% block extra_head %} + {% endblock %} + {% if raw_css %}{% endif %}