Merge "Turn off angular template cache preloading when DEBUG=True"

This commit is contained in:
Jenkins 2016-12-12 22:41:09 +00:00 committed by Gerrit Code Review
commit 7fcb0cf676
1 changed files with 7 additions and 5 deletions

View File

@ -60,11 +60,13 @@
{% endcompress %}
{% compress js file angular_template_cache_preloads %}
{% cache NG_TEMPLATE_CACHE_AGE angular 'template_cache_preloads' THEME %}
{% angular_templates %}
{% endcache %}
{% endcompress %}
{% if not debug %}
{% compress js file angular_template_cache_preloads %}
{% cache NG_TEMPLATE_CACHE_AGE angular 'template_cache_preloads' THEME %}
{% angular_templates %}
{% endcache %}
{% endcompress %}
{% endif %}
{% comment %} Client-side Templates (These should *not* be inside the "compress" tag.) {% endcomment %}
{% include "horizon/client_side/templates.html" %}