From 4e872235010b1b7ad8cb6912b9e3ccf4c39a352d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 10 May 2013 17:52:36 -0500 Subject: Simplify with statements by using new syntax Signed-off-by: Dan McGee --- templates/mirrors/status.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'templates/mirrors/status.html') 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 @@

Out of Sync Mirrors

- {% 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 %}

Successfully Syncing Mirrors

- {% 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 %}

Mirror Syncing Error Log

-- cgit v1.2.3-2-g168b From 76be96ac2c11604a2bfceed4212b686719620b13 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 10 May 2013 17:59:53 -0500 Subject: Pull mirror error table into inclusion template Signed-off-by: Dan McGee --- templates/mirrors/status.html | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'templates/mirrors/status.html') diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index a3da1ad6..331c18ee 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -71,29 +71,7 @@

Mirror Syncing Error Log

- - - - - - - - - - - - - {% for log in error_logs %} - - - - - - - {% endfor %} - -
Mirror URLProtocolCountryError MessageLast OccurredOccurrences (last {{ cutoff|hours }})
{{ 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 }}
- + {% include "mirrors/error_table.html" %} {% endblock %} -- cgit v1.2.3-2-g168b