[PATCHv6 6/8] gitweb: add 'alt' to avatar images
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Jun 25, 2009, 10:43 UTC
- Message-ID
- <1245926587-25074-7-git-send-email-giuseppe.bilotta@gmail.com>
- In-Reply-To
- <1245926587-25074-6-git-send-email-giuseppe.bilotta@gmail.com>
Without it, text-only browsers display the URL of the avatar, which can be long and not very informative. We use the avatar provider name for the alt text.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> --- gitweb/gitweb.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index d3bc849..3e6786b 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3294,7 +3294,7 @@ sub git_get_avatar { # as needed. If no variant puts something in $url, we assume avatars # are completely disabled/unavailable. if ($url) { - return $pre_white . "<img class=\"avatar\" src=\"$url\" />" . $post_white; + return $pre_white . "<img class=\"avatar\" src=\"$url\" alt=\"$git_avatar\" />" . $post_white; } else { return ""; }
-- 1.6.3.rc1.192.gdbfcb