summaryrefslogtreecommitdiff
path: root/templates/mirrors/url_details_logs.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mirrors/url_details_logs.html')
-rw-r--r--templates/mirrors/url_details_logs.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/mirrors/url_details_logs.html b/templates/mirrors/url_details_logs.html
new file mode 100644
index 00000000..a87e58d4
--- /dev/null
+++ b/templates/mirrors/url_details_logs.html
@@ -0,0 +1,28 @@
+{% load flags %}
+
+<table id="check_logs" class="results">
+ <thead>
+ <tr>
+ <th>Check Time</th>
+ <th>Check Location</th>
+ <th>Check IP</th>
+ <th>Last Sync</th>
+ <th>Delay (hh:mm)</th>
+ <th>Duration (s)</th>
+ <th>Success?</th>
+ <th>Error Message</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for log in logs %}<tr class="{% cycle 'odd' 'even' %}">
+ <td>{{ log.check_time|date:'Y-m-d H:i' }}</td>
+ <td class="country">{% if log.location %}{% country_flag log.location.country %}{{ log.location.country.name }}{% else %}Unknown{% endif %}</td>
+ <td>{% if log.location %}{{ log.location.source_ip }}{% else %}Unknown{% endif %}</td>
+ <td>{{ log.last_sync|date:'Y-m-d H:i' }}</td>
+ <td>{{ log.delay|duration }}</td>
+ <td>{{ log.duration|floatvalue }}</td>
+ <td>{{ log.is_success|yesno|capfirst }}</td>
+ <td class="wrap">{{ log.error|linebreaksbr }}</td>
+ </tr>{% endfor %}
+ </tbody>
+</table>