Code

gitweb: add empty alt text to avatar img
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 29 Jun 2009 22:00:54 +0000 (00:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2009 18:06:37 +0000 (11:06 -0700)
The empty alt text optimizes screen estate in text-only browsers.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl

index 862ea99f8a67f158e370a30264627f8615dff5e0..6a1b5b5b49611e158e5cd74b50685c9022b17adc 100755 (executable)
@@ -1574,6 +1574,7 @@ sub git_get_avatar {
                       "<img width=\"$size\" " .
                            "class=\"avatar\" " .
                            "src=\"$url\" " .
+                           "alt=\"\" " .
                       "/>" . $post_white;
        } else {
                return "";