summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-05-10 17:52:36 -0500
committerDan McGee <dan@archlinux.org>2013-05-10 17:52:40 -0500
commit4e872235010b1b7ad8cb6912b9e3ccf4c39a352d (patch)
treee757024835ba63477389857cf06fbd400aca4b89
parentac1c00ee86cc0e355af5e4e6be47ca861091356b (diff)
Simplify with statements by using new syntax
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/mirrors/status.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 283ff681..a3da1ad6 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -59,19 +59,15 @@
<a name="outofsync" id="outofsync"></a>
<h3>Out of Sync Mirrors</h3>
- {% with bad_urls as urls %}
- {% with 'outofsync_mirrors' as table_id %}
+ {% with urls=bad_urls table_id='outofsync_mirrors' %}
{% include "mirrors/status_table.html" %}
{% endwith %}
- {% endwith %}
<a name="successful" id="successful"></a>
<h3>Successfully Syncing Mirrors</h3>
- {% with good_urls as urls %}
- {% with 'successful_mirrors' as table_id %}
+ {% with urls=good_urls table_id='successful_mirrors' %}
{% include "mirrors/status_table.html" %}
{% endwith %}
- {% endwith %}
<a name="errorlog" id="errorlog"></a>
<h3>Mirror Syncing Error Log</h3>