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 --- sitestatic/archweb.css | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'sitestatic') diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css index a7fe6cac..1df05071 100644 --- a/sitestatic/archweb.css +++ b/sitestatic/archweb.css @@ -588,25 +588,6 @@ table#download-torrents .cpu-arch { text-align: center; } -table#download-mirrors { - width: auto; - margin-bottom: 1em; -} - - table#download-mirrors td.mirror-country { - padding-top: 1em; - } - - table#download-mirrors td.mirror-server { - padding-right: 1em; - } - - table#download-mirrors a { - display: block; - float: right; - width: 4em; - } - /* pkglists/devlists */ table.results { font-size: 0.846em; -- cgit v1.2.3-54-g00ecf 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 --- sitestatic/archweb.css | 5 +++++ templates/mirrors/status.html | 14 +++++--------- templates/mirrors/status_table.html | 4 +--- 3 files changed, 11 insertions(+), 12 deletions(-) (limited to 'sitestatic') diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css index 1df05071..fdc356ff 100644 --- a/sitestatic/archweb.css +++ b/sitestatic/archweb.css @@ -797,6 +797,11 @@ form#flag-pkg-form input[type=text] { padding-top: 1em; } +/* mirror stuff */ +table td.country { + white-space: normal; +} + /* dev/TU biographies */ div#arch-bio-toc { width: 75%; 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 Status

  • 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 @@

    Mirror Syncing Error Log

    {% 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 @@

    Mirror Syncing Error Log