From a8c92dc271ab0eee11625257d4b4671c051d91a7 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Tue, 11 Sep 2012 11:25:55 -0700 Subject: [PATCH] Remove template comments from compressed blocks. Template comment tags within compressed blocks throws off checksum calculation with older versions of compressor. This makes offline compression impossible and requires the pages be rendered for every request with online compression. Removing trivial comments from the compressed blocks ensures Horizon is compatable with older versions (v1.1.2 shipping with Ubuntu). Change-Id: I3a9f2614695b72445719101bfa2480384d77f3a4 --- horizon/templates/horizon/_scripts.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/horizon/templates/horizon/_scripts.html b/horizon/templates/horizon/_scripts.html index d24cecc4a..61caf6c2b 100644 --- a/horizon/templates/horizon/_scripts.html +++ b/horizon/templates/horizon/_scripts.html @@ -3,8 +3,8 @@ {% comment %} Django's JavaScript i18n Implementation {% endcomment %} +{% comment %} Compress jQuery, Plugins, Bootstrap, Hogan.js and Horizon-specific JS. {% endcomment %} {% compress js %} -{% comment %} jQuery and Plugins {% endcomment %} @@ -14,13 +14,10 @@ -{% comment %} Bootstrap {% endcomment %} -{% comment %} Hogan.js (client-side templating) {% endcomment %} -{% comment %} Horizon-specific JS {% endcomment %}