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.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/mirrors/status.html') diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 225572ee..8f814448 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -92,7 +92,7 @@ {% spaceless %} {{ log.url__url }} {{ log.url__protocol__protocol }} - {{ log.country }} + {% if log.country %} {% endif %}{{ log.country.name }} {{ log.error }} {{ log.last_occurred|date:'Y-m-d H:i' }} {{ log.error_count }} -- 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.html | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'templates/mirrors/status.html') diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index 8f814448..c04aa204 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -18,10 +18,6 @@
  • Mirror URL: Mirrors are checked on a per-URL basis. If both FTP and HTTP access are provided, both will be listed here.
  • -
  • Last Sync: The timestamp retrieved from the - lastsync file on the mirror. If this file could not be - retrieved or contained data we didn't recognize, this column will show - 'unknown'.
  • Completion %: The number of mirror checks that have successfully connected and disconnected from the given URL. If this is below 100%, the mirror may be unreliable.
  • @@ -92,8 +88,8 @@ {% spaceless %} {{ log.url__url }} {{ log.url__protocol__protocol }} - {% if log.country %} {% endif %}{{ log.country.name }} - {{ log.error }} + {% if log.country %} {% endif %}{{ log.country.name }} + {{ log.error }} {{ log.last_occurred|date:'Y-m-d H:i' }} {{ log.error_count }} @@ -107,11 +103,11 @@