From 1c6099f4b27f31c100b8bfa0d18f439075cceff0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 23 Sep 2010 18:15:00 -0500 Subject: Make general mirror list view public Hide some columns when not logged in because they aren't relevant for the general public, but this will work nicely as a base page for all of our known mirrors. Signed-off-by: Dan McGee --- templates/devel/mirrorlist.html | 49 --------------------------------------- templates/mirrors/mirrors.html | 51 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 49 deletions(-) delete mode 100644 templates/devel/mirrorlist.html create mode 100644 templates/mirrors/mirrors.html (limited to 'templates') diff --git a/templates/devel/mirrorlist.html b/templates/devel/mirrorlist.html deleted file mode 100644 index 9ae6563..0000000 --- a/templates/devel/mirrorlist.html +++ /dev/null @@ -1,49 +0,0 @@ -{% extends "base.html" %} -{% block title %}Arch Linux - Mirror Overview{% endblock %} - -{% block content %} -
- -

Mirror List

- - - - - - - - - - - - - - - - - - {% for mirror in mirror_list %} - - - - - - - - - - - - - {% endfor %} - -
ServerTierCountryAdmin EmailPublicActiveISOsProtocolsRsync IPsNotes
{{mirror.name}}{{mirror.get_tier_display}}{{mirror.country}}{{mirror.admin_email}}{{mirror.public|yesno}}{{mirror.active|yesno}}{{mirror.isos|yesno}}{{mirror.supported_protocols}}{{mirror.rsync_ips.count}}{{mirror.notes}}
-
-{% load cdn %}{% jquery %} - - -{% endblock %} diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html new file mode 100644 index 0000000..253efe5 --- /dev/null +++ b/templates/mirrors/mirrors.html @@ -0,0 +1,51 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - Mirror Overview{% endblock %} + +{% block content %} +
+

Mirror Overview

+ + + + + + + + + {% if user.is_authenticated %} + + + + + + {% endif %} + + + + {% for mirror in mirror_list %} + + + + + + + {% if user.is_authenticated %} + + + + + + {% endif %} + + {% endfor %} + +
ServerTierCountryISOsProtocolsPublicActiveRsync IPsAdmin EmailNotes
{{mirror.name}}{{mirror.get_tier_display}}{{mirror.country}}{{mirror.isos|yesno}}{{mirror.supported_protocols}}{{mirror.public|yesno}}{{mirror.active|yesno}}{{mirror.rsync_ips.all|join:', '}}{{mirror.admin_email}}{{mirror.notes|linebreaks}}
+
+{% load cdn %}{% jquery %} + + +{% endblock %} -- cgit v1.2.3-24-g4f1b