From b519c40e0af5b86ba660cf9d9cfc53a66fd8bef8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 20 Apr 2013 11:11:04 -0500 Subject: Remove {% spaceless %} tag from a few more places This tag is simply not worth the time it takes to do what it does. Signed-off-by: Dan McGee --- templates/mirrors/status.html | 6 ++---- templates/mirrors/status_table.html | 6 ++---- templates/packages/search.html | 6 ++---- templates/packages/signoffs.html | 8 ++------ 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 8d32d3fa..26e81e79 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -87,16 +87,14 @@ - {% for log in error_logs %} - {% spaceless %} + {% for log in error_logs %} {{ log.url__url }} {{ log.url__protocol__protocol }} {% country_flag log.country %}{{ log.country.name }} {{ log.error|linebreaksbr }} {{ log.last_occurred|date:'Y-m-d H:i' }} {{ log.error_count }} - - {% endspaceless %}{% endfor %} + {% endfor %} diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 2dd7ef49..e848a9c9 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -14,8 +14,7 @@ - {% for m_url in urls %} - {% spaceless %} + {% for m_url in urls %} {{ m_url.url }} {{ m_url.protocol }} {% country_flag m_url.country %}{{ m_url.country.name }} @@ -24,7 +23,6 @@ {{ m_url.duration_avg|floatformat:2 }} {{ m_url.duration_stddev|floatformat:2 }} {{ m_url.score|floatformat:1|default:'∞' }} - - {% endspaceless %}{% endfor %} + {% endfor %} diff --git a/templates/packages/search.html b/templates/packages/search.html index bf1eecd9..f50bc8be 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -69,8 +69,7 @@ - {% for pkg in package_list %} - {% spaceless %} + {% for pkg in package_list %} {% if perms.main.change_package %} {% endif %} @@ -85,8 +84,7 @@ {{ pkg.pkgdesc }} {{ pkg.last_update|date }} {{ pkg.flag_date|date }} - - {% endspaceless %}{% endfor %} + {% endfor %} {% include "packages/search_paginator.html" %} diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html index 20371f95..2879c30b 100644 --- a/templates/packages/signoffs.html +++ b/templates/packages/signoffs.html @@ -50,9 +50,7 @@ - {% for group in signoff_groups %} - - {% spaceless %} + {% for group in signoff_groups %} {% pkg_details_link group.package %} {{ group.version }} {{ group.arch.name }} {{ group.target_repo }} @@ -75,9 +73,7 @@ {% endcomment %}{% if spec.known_bad %}Package is known to be bad
{% endif %}{% comment %} {% endcomment %}{{ spec.comments|default:""|linebreaksbr }} {% endwith %}{% endif %} - {% endspaceless %} - - {% endfor %} + {% endfor %} -- cgit v1.2.3-55-g3dc8