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/error_table.html | 23 +++++++++++++++++++++++ templates/mirrors/status.html | 24 +----------------------- templates/mirrors/status_table.html | 3 +-- 3 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 templates/mirrors/error_table.html diff --git a/templates/mirrors/error_table.html b/templates/mirrors/error_table.html new file mode 100644 index 0000000..6054814 --- /dev/null +++ b/templates/mirrors/error_table.html @@ -0,0 +1,23 @@ +{% load flags mirror_status %} + + + + + + + + + + + + + {% 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 }}
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index a3da1ad..331c18e 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 %} diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index e848a9c..2817542 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -1,5 +1,4 @@ -{% load mirror_status %} -{% load flags %} +{% load flags mirror_status %} -- cgit v1.2.3-24-g4f1b