summaryrefslogtreecommitdiffstats
path: root/templates/mirrors/mirror_details.html
blob: 90baa75daa77addb26fa6375546e6d30fb2edbe0 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% extends "base.html" %}

{% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %}

{% block content %}
<!-- TODO: ids and classes -->
<div id="pkgdetails" class="box">

    <h2>Mirror Details: {{ mirror.name }}</h2>

    <table id="pkginfo">
        <tr>
            <th>Name:</th>
            <td>{{ mirror.name }}</td>
        </tr><tr>
            <th>Tier:</th>
            <td>{{ mirror.get_tier_display }}</td>
        </tr><tr>
            <th>Upstream:</th>
            <!-- TODO: linking to non-public mirrors -->
            <td>{% if mirror.upstream %}
                <a href="{{ mirror.upstream.get_absolute_url }}"
                    title="Mirror details for {{ mirror.upstream.name }}">{{ mirror.upstream.name }}</a>
                {% else %}None{% endif %}</td>
        </tr><tr>
            <th>Downstream:</th>
            {% with mirror.downstream as ds_mirrors %}
            <td>{% if ds_mirrors %}
                {% for ds in ds_mirrors %}
                <a href="{{ ds.get_absolute_url }}"
                    title="Mirror details for {{ ds.name }}">{{ ds.name }}</a><br/>
                {% endfor %}
                {% else %}None{% endif %}
            </td>
            {% endwith %}
        </tr><tr>
            <th>Country:</th>
            <td>{{ mirror.country }}</td>
        </tr><tr>
            <th>Has ISOs:</th>
            <td>{{ mirror.isos|yesno }}</td>
        </tr><tr>
            <th>Protocols:</th>
            <td>{{ mirror.supported_protocols }}</td>
        </tr><tr>
            <th>Mirror URLs:</th>
            {% with mirror.urls.all as urls %}
            <td>{% if urls %}
                {% for u in urls %}
                <a href="{{ u.url }}">{{ u.url }}</a><br/>
                {% endfor %}
                {% else %}None{% endif %}
            </td>
            {% endwith %}
        </tr>
    </table>
</div>
{% endblock %}