From 5555ce02278defaef0ef1388c163701eea3aff7e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 29 Mar 2012 11:35:40 -0500 Subject: Use spaceless tag in mirror status output This removes a lot of needless whitespace in the generated output, shrinking the uncompressed page size by 30KB to 54KB total on my current set of mirror test data. Signed-off-by: Dan McGee --- templates/mirrors/status.html | 4 ++-- templates/mirrors/status_table.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/mirrors') diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 4f09be8..225572e 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -89,7 +89,7 @@ {% for log in error_logs %} - + {% spaceless %} {{ log.url__url }} {{ log.url__protocol__protocol }} {{ log.country }} @@ -97,7 +97,7 @@ {{ log.last_occurred|date:'Y-m-d H:i' }} {{ log.error_count }} - {% endfor %} + {% endspaceless %}{% endfor %} diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 72de25d..bd70115 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -15,7 +15,7 @@ {% for m_url in urls %} - + {% spaceless %} {{ m_url.url }} {{ m_url.protocol }} {{ m_url.real_country }} @@ -26,6 +26,6 @@ {{ m_url.duration_stddev|floatformat:2 }} {{ m_url.score|floatformat:1|default:'∞' }} - {% endfor %} + {% endspaceless %}{% endfor %} -- cgit v1.2.3-24-g4f1b