summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-29 18:35:40 +0200
committerDan McGee <dan@archlinux.org>2012-03-29 18:35:40 +0200
commit5555ce02278defaef0ef1388c163701eea3aff7e (patch)
tree587d090955c6084e608589702bb8f185cd6ee395 /templates/mirrors
parent076f9c51d50be9bb567e8477eff4c15bde62fcb3 (diff)
downloadarchweb-5555ce02278defaef0ef1388c163701eea3aff7e.tar.gz
archweb-5555ce02278defaef0ef1388c163701eea3aff7e.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/status.html4
-rw-r--r--templates/mirrors/status_table.html4
2 files changed, 4 insertions, 4 deletions
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 @@
</thead>
<tbody>
{% for log in error_logs %}
- <tr class="{% cycle 'odd' 'even' %}">
+ {% spaceless %}<tr class="{% cycle 'odd' 'even' %}">
<td>{{ log.url__url }}</td>
<td>{{ log.url__protocol__protocol }}</td>
<td>{{ log.country }}</td>
@@ -97,7 +97,7 @@
<td>{{ log.last_occurred|date:'Y-m-d H:i' }}</td>
<td>{{ log.error_count }}</td>
</tr>
- {% endfor %}
+ {% endspaceless %}{% endfor %}
</tbody>
</table>
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 @@
</thead>
<tbody>
{% for m_url in urls %}
- <tr class="{% cycle 'odd' 'even' %}">
+ {% spaceless %}<tr class="{% cycle 'odd' 'even' %}">
<td>{{ m_url.url }}</td>
<td>{{ m_url.protocol }}</td>
<td>{{ m_url.real_country }}</td>
@@ -26,6 +26,6 @@
<td>{{ m_url.duration_stddev|floatformat:2 }}</td>
<td>{{ m_url.score|floatformat:1|default:'∞' }}</td>
</tr>
- {% endfor %}
+ {% endspaceless %}{% endfor %}
</tbody>
</table>