summaryrefslogtreecommitdiffstats
path: root/templates/mirrors/url_details_logs.html.jinja
blob: 8f7c564411b0b829faa544b892b9a406a8945424 (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
25
26
27
28
    <h3>Check Logs</h3>

    <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="{{ loop.cycle('odd', 'even') }}">
                <td>{{ log.check_time|date('Y-m-d H:i') }}</td>
                <td class="country">{{ country_flag(log.location.country) }}{{ log.location.country.name }}</td>
                <td>{{ log.location.source_ip }}</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>