summaryrefslogtreecommitdiffstats
path: root/templates/mirrors/error_table.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-05-11 01:46:55 +0200
committerDan McGee <dan@archlinux.org>2013-05-11 01:46:55 +0200
commitc4d894c85b738df53e8e06e65be48e34572b2f5f (patch)
tree3805f17e16b6f49fcbe318eb60ac03f0bbec7d84 /templates/mirrors/error_table.html
parentdad70d0d7c70e7973cd9e3960b24e7f9ef883c61 (diff)
parent8097a1fdeff36fb3db521a3b354ea8bf576869cc (diff)
downloadarchweb-c4d894c85b738df53e8e06e65be48e34572b2f5f.tar.gz
archweb-c4d894c85b738df53e8e06e65be48e34572b2f5f.tar.xz
Merge branch 'mirror-errors'
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 0000000..6054814
--- /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>