summaryrefslogtreecommitdiff
path: root/templates/mirrors/error_table.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mirrors/error_table.html')
-rw-r--r--templates/mirrors/error_table.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/mirrors/error_table.html b/templates/mirrors/error_table.html
new file mode 100644
index 00000000..03de4944
--- /dev/null
+++ b/templates/mirrors/error_table.html
@@ -0,0 +1,26 @@
+{% load flags %}
+
+<table id="errorlog_mirrors" class="results">
+ <thead>
+ <tr>
+ <th>Mirror URL</th>
+ <th>Protocol</th>
+ <th>Country</th>
+ <th>Error Message</th>
+ <th>Last Occurred</th>
+ <th>Occurrences (last {{ cutoff|hours }})</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for log in error_logs %}<tr class="{% cycle 'odd' 'even' %}">
+ <td>{{ log.url.url }}</td>
+ <td>{{ log.url.protocol.protocol }}</td>
+ <td class="country">{% country_flag log.url.country %}{{ log.url.country.name }}</td>
+ <td class="wrap">{{ log.error|linebreaksbr }}</td>
+ <td>{{ log.last_occurred|date:'Y-m-d H:i' }}</td>
+ <td>{{ log.error_count }}</td>
+ <td><a href="{{ log.url.get_absolute_url }}">details</a></td>
+ </tr>{% endfor %}
+ </tbody>
+</table>