From bc5a5781bf43f81ab266bf258d4ab8bf16c9b2d0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 23 Sep 2010 18:50:56 -0500 Subject: Add a basic mirror details page Still some work to do here, but this covers the basics of the public view we can show for mirrors and their associated data. The upstream and downstream links should be working OK to aid navigation, but right now we have some potential dead links for non-authenticated users if they click a link to a "private" mirror. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 templates/mirrors/mirror_details.html (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html new file mode 100644 index 0000000..90baa75 --- /dev/null +++ b/templates/mirrors/mirror_details.html @@ -0,0 +1,58 @@ +{% extends "base.html" %} + +{% block title %}Arch Linux - {{ mirror.name }} - Mirror Details{% endblock %} + +{% block content %} + +
+ +

Mirror Details: {{ mirror.name }}

+ + + + + + + + + + + + + + + {% with mirror.downstream as ds_mirrors %} + + {% endwith %} + + + + + + + + + + + + {% with mirror.urls.all as urls %} + + {% endwith %} + +
Name:{{ mirror.name }}
Tier:{{ mirror.get_tier_display }}
Upstream:{% if mirror.upstream %} + {{ mirror.upstream.name }} + {% else %}None{% endif %}
Downstream:{% if ds_mirrors %} + {% for ds in ds_mirrors %} + {{ ds.name }}
+ {% endfor %} + {% else %}None{% endif %} +
Country:{{ mirror.country }}
Has ISOs:{{ mirror.isos|yesno }}
Protocols:{{ mirror.supported_protocols }}
Mirror URLs:{% if urls %} + {% for u in urls %} + {{ u.url }}
+ {% endfor %} + {% else %}None{% endif %} +
+
+{% endblock %} -- cgit v1.2.3-24-g4f1b