From 7a56c40399a43701a0c27adfcc07382c5b0cc1bf Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Tue, 24 Jan 2017 23:01:45 +0000 Subject: Adds alt attributes to images for country flags and relay flags (Fixes: #21291) In cases where there is no other text and the meaning is conveyed only in the icon, this adds alt text explaining the icon. In cases where the icon is next to text that explains the icon, the alt attribute is specified as an empty string as recommended by the HTML 5 specification. --- templates/details/bridge.html | 2 +- templates/details/router.html | 4 ++-- templates/search/do.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/details/bridge.html b/templates/details/bridge.html index 2cbd24a..8d11514 100644 --- a/templates/details/bridge.html +++ b/templates/details/bridge.html @@ -44,7 +44,7 @@
Flags
<% _.each(relay.get('flags'), function(flag) { %> - + <%= flag[0] %> <% }); %>
diff --git a/templates/details/router.html b/templates/details/router.html index 505f8c1..4e72e7f 100644 --- a/templates/details/router.html +++ b/templates/details/router.html @@ -76,13 +76,13 @@
Flags
<% _.each(relay.get('flags'), function(flag) { %> - + <%= flag[0] %> <% }); %>
Country
-
<%= relay.get('countryname') %>
+
<%= relay.get('countryname') %>
AS Number
<%= _.escape(relay.get('as_no')) %>
diff --git a/templates/search/do.html b/templates/search/do.html index eac2abe..ebb2508 100644 --- a/templates/search/do.html +++ b/templates/search/do.html @@ -87,13 +87,13 @@ <% if ( relay.get('country')) { %> - + <%= relay.get('countryname') %> <% } %> <%= relay.get('or_address') %> <% _.each(relay.get('flags'), function(flag) { %> - + <%= flag[0] %> <% }); %> <%= relay.get('or_port') %> -- cgit v1.2.1