[WebUI] Add country flag alt/title for accessibility

This allows viewing the country in textual form by hovering the flag
image and displays it if the image couldn't be loaded.
This commit is contained in:
Vasilij Schneidermann 2020-05-08 17:45:30 +02:00 committed by Calum Lind
parent 937afd921c
commit 6d9dc9bd42
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
return ''; return '';
} }
return String.format( return String.format(
'<img src="{0}flag/{1}" />', '<img alt="{1}" title="{1}" src="{0}flag/{1}" />',
deluge.config.base, deluge.config.base,
value value
); );