diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-29 11:35:40 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-29 11:35:40 -0500 |
commit | 5555ce02278defaef0ef1388c163701eea3aff7e (patch) | |
tree | 587d090955c6084e608589702bb8f185cd6ee395 | |
parent | 076f9c51d50be9bb567e8477eff4c15bde62fcb3 (diff) |
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>
-rw-r--r-- | templates/mirrors/status.html | 4 | ||||
-rw-r--r-- | templates/mirrors/status_table.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 4f09be8b..225572ee 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 72de25dc..bd70115c 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> |