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/status_table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/status_table.html') diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index bd70115c..3a20c068 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -18,7 +18,7 @@ {% spaceless %} {{ m_url.url }} {{ m_url.protocol }} - {{ m_url.real_country }} + {% if m_url.real_country %} {% endif %}{{ m_url.real_country.name }} {{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }} {{ m_url.completion_pct|percentage:1 }} {{ m_url.delay|duration|default:'unknown' }} -- cgit v1.2.3-2-g168b From 2cfd0be715b93632a85608092726c5df926ed9ae Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 25 Apr 2012 01:52:19 -0500 Subject: Mirror status page cleanup Remove the 'last sync' column; it is not totally useless but mostly covered by the average delay column, and we are running out of usable real estate here. Also tweak a few columns so wrapping is permissible. Thank you to "Macedonia, The Former Yugoslav Republic of" for this. Signed-off-by: Dan McGee --- templates/mirrors/status_table.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates/mirrors/status_table.html') diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 3a20c068..71a21fe8 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -5,7 +5,6 @@ Mirror URL Protocol Country - Last Sync Completion % μ Delay (hh:mm) μ Duration (secs) @@ -18,8 +17,7 @@ {% spaceless %} {{ m_url.url }} {{ m_url.protocol }} - {% if m_url.real_country %} {% endif %}{{ m_url.real_country.name }} - {{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }} + {% if m_url.real_country %} {% endif %}{{ m_url.real_country.name }} {{ m_url.completion_pct|percentage:1 }} {{ m_url.delay|duration|default:'unknown' }} {{ m_url.duration_avg|floatformat:2 }} -- 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/status_table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/status_table.html') diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 71a21fe8..1961d222 100644 --- a/templates/mirrors/status_table.html +++ b/templates/mirrors/status_table.html @@ -17,7 +17,7 @@ {% spaceless %} {{ m_url.url }} {{ m_url.protocol }} - {% if m_url.real_country %} {% endif %}{{ m_url.real_country.name }} + {% if m_url.real_country %} {% endif %}{{ m_url.real_country.name }} {{ m_url.completion_pct|percentage:1 }} {{ m_url.delay|duration|default:'unknown' }} {{ m_url.duration_avg|floatformat:2 }} -- cgit v1.2.3-2-g168b