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 +- templates/mirrors/mirrors.html | 2 +- templates/mirrors/status.html | 2 +- templates/mirrors/status_table.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/mirrors') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 3218cdc..edeab5d 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: diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html index 19c6ea2..77c9ec3 100644 --- a/templates/mirrors/mirrors.html +++ b/templates/mirrors/mirrors.html @@ -27,7 +27,7 @@ {{ mirror.name }} {{ mirror.get_tier_display }} - {% if mirror.country %} {% endif %}{{ mirror.country.name }} + {% if mirror.country %} {% endif %}{{ mirror.country.name }} {{ mirror.isos|yesno|capfirst }} {{ mirror.supported_protocols|join:", " }} {% if user.is_authenticated %} diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html index c04aa20..8ee1d46 100644 --- a/templates/mirrors/status.html +++ b/templates/mirrors/status.html @@ -88,7 +88,7 @@ {% spaceless %} {{ log.url__url }} {{ log.url__protocol__protocol }} - {% if log.country %} {% endif %}{{ log.country.name }} + {% if log.country %} {% endif %}{{ log.country.name }} {{ log.error }} {{ log.last_occurred|date:'Y-m-d H:i' }} {{ log.error_count }} diff --git a/templates/mirrors/status_table.html b/templates/mirrors/status_table.html index 71a21fe..1961d22 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-24-g4f1b