From 116751e4bab183b3cca93ab13f7f4f21c752be4e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 24 Apr 2012 23:22:23 -0500 Subject: Rename mirror country fields to country_old in prep for normalization We're going to move to using ISO 2 character codes via django countries, so start by moving the old data out of the way first. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 249b36f2..bb3b417c 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -21,7 +21,7 @@ Country: - {{ mirror.country }} + {{ mirror.country_old }} Has ISOs: -- cgit v1.2.3-2-g168b From 640e0f58645a7fd07f3c6185d9583b4d218e2468 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 25 Apr 2012 01:32:57 -0500 Subject: Finish django countries implementation * Add a migration to drop the old countries field. * Update all templates/views/utility methods to point at the new country field and dereference it as necessary. * Add the flags images to a few views where it makes sense. * Cleanup the download page layout quite a bit. * Bump the mirror status JSON version to 3; add country_code attribute. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index bb3b417c..6fe68f36 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -21,7 +21,7 @@ Country: - {{ mirror.country_old }} + {{ mirror.country.name|default:'Worldwide' }} Has ISOs: -- cgit v1.2.3-2-g168b From 021e7717e0dcdb5a18271b60446e2aa5edec5833 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 25 Apr 2012 02:34:18 -0500 Subject: Add country flag to individual mirror details page Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 6fe68f36..3218cdce 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -21,7 +21,7 @@ Country: - {{ mirror.country.name|default:'Worldwide' }} + {% if mirror.country %} {% endif %}{{ mirror.country.name|default:'Worldwide' }} Has ISOs: -- cgit v1.2.3-2-g168b From 9616aec563baff19898c5a3185bc2011734544cb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 26 Apr 2012 12:05:57 -0500 Subject: Add empty 'alt' attribute for all country flag images These are all used purely for decoration, and the country name itself is right next to the flag image, so we can safely mark these as "invisible" to screen readers, text browsers, etc. Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/mirror_details.html') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 3218cdce..edeab5dc 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -21,7 +21,7 @@ Country: - {% if mirror.country %} {% endif %}{{ mirror.country.name|default:'Worldwide' }} + {% if mirror.country %} {% endif %}{{ mirror.country.name|default:'Worldwide' }} Has ISOs: -- cgit v1.2.3-2-g168b