summaryrefslogtreecommitdiff
path: root/templates/mirrors/error_table.html
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 13:14:05 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 13:14:05 -0600
commit0aa246b85159bf627873308868cf169868cba569 (patch)
tree0fd52aebc6ab0d3d5eff592d00ff10fe920bb035 /templates/mirrors/error_table.html
parent55b776d58999412cd6bf0787a41d6ab00bf80fb6 (diff)
parent31bc66e23c2ea0467d2201b86536f161fd1f32ca (diff)
Merge branch 'archweb' into archweb-generic2
Diffstat (limited to 'templates/mirrors/error_table.html')
-rw-r--r--templates/mirrors/error_table.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/mirrors/error_table.html b/templates/mirrors/error_table.html
new file mode 100644
index 00000000..6054814f
--- /dev/null
+++ b/templates/mirrors/error_table.html
@@ -0,0 +1,23 @@
+{% load flags mirror_status %}
+<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>
+ </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.country %}{{ log.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>
+ </tr>{% endfor %}
+ </tbody>
+</table>