From 5df255a5b61117f5e48a638b11470a092b8326c6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 28 Mar 2011 18:26:55 -0500 Subject: Enhance the mirror details page Get the URLs with their performance data showing up, and simplify the top part for non-authenticated users while adding more detail for logged-in users. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 111 ++++++++++++++++++++++++++-------- 1 file changed, 85 insertions(+), 26 deletions(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 90baa75..ae7ec63 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load mirror_status %} {% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %} @@ -12,47 +13,105 @@ Name: {{ mirror.name }} - + + Tier: {{ mirror.get_tier_display }} - + + + Country: + {{ mirror.country }} + + + Has ISOs: + {{ mirror.isos|yesno }} + + {% if user.is_authenticated %} + + Public: + {{ mirror.public|yesno }} + + + Active: + {{ mirror.active|yesno }} + + + Rsync IPs: + {{mirror.rsync_ips.all|join:', '}} + + + Admin Email: + {{ mirror.admin_email }} + + + Notes: + {{ mirror.notes|linebreaks }} + + Upstream: - {% if mirror.upstream %} {{ mirror.upstream.name }} {% else %}None{% endif %} - + + Downstream: {% with mirror.downstream as ds_mirrors %} {% if ds_mirrors %} {% for ds in ds_mirrors %} {{ ds.name }}
+ title="Mirror details for {{ ds.name }}">{{ ds.name }} + {% if not ds.active %}(inactive){% endif %} + {% if not ds.public %}(private){% endif %} +
{% endfor %} - {% else %}None{% endif %} - - {% endwith %} - - Country: - {{ mirror.country }} - - Has ISOs: - {{ mirror.isos|yesno }} - - Protocols: - {{ mirror.supported_protocols }} - - Mirror URLs: - {% with mirror.urls.all as urls %} - {% if urls %} - {% for u in urls %} - {{ u.url }}
- {% endfor %} - {% else %}None{% endif %} - + {% else %}None{% endif %} {% endwith %} + {% endif %} + + +

Available URLs

+ + + + + + + + + + + + + + + + + {% for m_url in urls %} + + + + + + + + + + + + {% endfor %} +
Mirror URLIPv4IPv6Last SyncCompletion %μ Delay (hh:mm)μ Duration (secs)σ Duration (secs)Mirror Score
{% if m_url.protocol.is_download %}{{ m_url.url }}{% else %}{{ m_url.url }}{% endif %}{{ m_url.has_ipv4|yesno }}{{ m_url.has_ipv6|yesno }}{{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }}{{ m_url.completion_pct|percentage:1 }}{{ m_url.delay|duration|default:'unknown' }}{{ m_url.duration_avg|floatformat:2 }}{{ m_url.duration_stddev|floatformat:2 }}{{ m_url.score|floatformat:1|default:'∞' }}
+{% load cdn %}{% jquery %} + + + {% endblock %} -- cgit v1.2.3-24-g4f1b