url_details.html 2.12 KB
Newer Older
Dan McGee's avatar
Dan McGee committed
1
{% extends "base.html" %}
2
{% load static %}
Dan McGee's avatar
Dan McGee committed
3
4
5
6
7
{% load mirror_status %}
{% load flags %}

{% block title %}Arch Linux - {{ url.url }} - URL Details{% endblock %}

8
{% block head %}<link rel="stylesheet" type="text/css" href="{% static "flags/fam.css" %}" media="screen" />{% endblock %}
Dan McGee's avatar
Dan McGee committed
9
10
11
12
13
14
15
16

{% block content %}
<div class="box">
    <h2>URL Details: {{ url.url }}</h2>

    <table class="compact">
        <tr>
            <th>URL:</th>
17
            <td>{% if url.protocol.is_download %}<a href="{{ url.url }}">{{ url.url }}</a>{% else %}{{ url.url }}{% endif %}</td>
Dan McGee's avatar
Dan McGee committed
18
        </tr>
19
20
21
22
        <tr>
            <th>Mirror:</th>
            <td><a href="../">{{ url.mirror.name }}</a></td>
        </tr>
Dan McGee's avatar
Dan McGee committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
        <tr>
            <th>Protocol:</th>
            <td>{{ url.protocol }}</td>
        </tr>
        <tr>
            <th>Country:</th>
            <td class="country">{% country_flag url.country %}{{ url.country.name }}</td>
        </tr>
        <tr>
            <th>IPv4:</th>
            <td>{{ url.has_ipv4|yesno|capfirst }}</td>
        </tr>
        <tr>
            <th>IPv6:</th>
            <td>{{ url.has_ipv6|yesno|capfirst }}</td>
        </tr>
        {% if user.is_authenticated %}
        <tr>
            <th>Active:</th>
            <td>{{ url.active|yesno|capfirst }}</td>
        </tr>
        <tr>
            <th>Created:</th>
            <td>{{ url.created }}</td>
        </tr>
48
49
50
51
52
53
54
55
        <tr>
            <th>First Check:</th>
            <td>{{ url.logs.earliest.check_time }}</td>
        </tr>
        <tr>
            <th>Last Check:</th>
            <td>{{ url.logs.latest.check_time }}</td>
        </tr>
Dan McGee's avatar
Dan McGee committed
56
57
58
        {% endif %}
    </table>

59
    <h3>Check Logs</h3>
60
    {% include "mirrors/url_details_logs.html" %}
Dan McGee's avatar
Dan McGee committed
61
62
63
64
65
66
</div>
{% endblock %}

{% block script_block %}
{% load cdn %}{% jquery %}{% jquery_tablesorter %}
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
Jelle van der Waa's avatar
Jelle van der Waa committed
67
<script type="text/javascript" nonce={{ CSP_NONCE }}>
Dan McGee's avatar
Dan McGee committed
68
69
70
71
72
73
74
$(document).ready(function() {
    $("#check_logs:has(tbody tr)").tablesorter(
        {widgets: ['zebra'], sortList: [[0,1]],
        headers: { 5: { sorter: 'mostlydigit' } } });
});
</script>
{% endblock %}