summaryrefslogtreecommitdiff
path: root/templates/mirrors/error_table.html
blob: cd7265afdfa50c5a11da49038b9e5beb14c19709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% load cycle from future %}
{% 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>