Commit Graph

9 Commits

Author SHA1 Message Date
Dan McGee
9616aec563 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 <dan@archlinux.org>
2012-04-26 12:05:57 -05:00
Dan McGee
2cfd0be715 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 <dan@archlinux.org>
2012-04-25 01:52:19 -05:00
Dan McGee
640e0f5864 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 <dan@archlinux.org>
2012-04-25 01:51:58 -05:00
Dan McGee
5555ce0227 Use spaceless tag in mirror status output
This removes a lot of needless whitespace in the generated output,
shrinking the uncompressed page size by 30KB to 54KB total on my current
set of mirror test data.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29 11:35:40 -05:00
Dan McGee
78a553e558 Add optional country override for individual mirror URLs
This allows a named top-level mirror to have geographically distributed
URLs, e.g. kernel.org and the geo-DNS setup.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-12 18:36:20 -05:00
Dan McGee
2c13364880 Mirror status improvements
* Fix sorting issues. '', 'unknown', and '∞' should now always sort after
  anything else in the list.
* Add a completion percentage column; this will tell you at a glance if a
  mirror is sometimes unresponsive. This should probably be incorporated
  into the mirror score.
* Make a few more things dynamic in the template, like the time back the
  page reflects.
* Add some additional template tags for formatting things.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30 12:47:30 -05:00
Dan McGee
0dba93a9fc Switch mirror status delay display to average delay
This takes a bit more work to compute, but since we cache all of this anyway
it isn't too big of deal. Using average delay instead of last delay will be
a bit more fair on mirrors that have odd syncing schedules, as well as
exposing those that only sync once a day. Also fix an issue that will arise
with cutoff_time being calculated once, and adjust mirror score to treat
hours delay as a float rather than an integer.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22 13:28:12 -05:00
Dan McGee
2a296af10d Add ordering, sorting, and a lot more info to mirror status page
This should get this to the point where it is releasable to the general
public for their use and pleasure. Still not sure on how often the check
should be run, and we probably want to incorporate this mined data into some
other things like the mirror list generator.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 17:30:14 -05:00
Dan McGee
40ac4818aa Add mirror status view
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:33 -05:00