From 0c72812fde64f3ed039d807b9e8b3914960b7d6b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 2 Nov 2014 09:42:52 -0600 Subject: Mirror view tweaks and enhancements * Add country column to main mirror list overview page. Most mirrors are strictly in one country, so do a little magic to show the right country if it makes sense. * Use new way of getting country names so we respect the overrides now present in the django_countries package. * Make the country selection box on the mirrorlist generation page a lot taller by default so it is easier to use. Signed-off-by: Dan McGee --- templates/mirrors/mirrors.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html index 4276b30a..f55bd875 100644 --- a/templates/mirrors/mirrors.html +++ b/templates/mirrors/mirrors.html @@ -1,8 +1,12 @@ {% extends "base.html" %} {% load cycle from future %} {% load static from staticfiles %} +{% load flags %} + {% block title %}Arch Linux - Mirror Overview{% endblock %} +{% block head %}{% endblock %} + {% block content %}

Mirror Overview

@@ -10,6 +14,7 @@

Mirror Overview

Server + Country Tier ISOs Protocols @@ -26,6 +31,7 @@

Mirror Overview

{{ mirror.name }} + {% if mirror.country %}{% country_flag mirror.country %}{{ mirror.country.name }}{% else %}Various{% endif %} {{ mirror.get_tier_display }} {{ mirror.isos|yesno|capfirst }} {{ mirror.protocols|join:", " }} @@ -44,7 +50,7 @@

Mirror Overview

{% endblock %} -- cgit v1.2.3-54-g00ecf