gitweb: Add title attribute to ref marker with full ref name
authorJakub Narebski <jnareb@gmail.com>
Fri, 15 Dec 2006 22:49:12 +0000 (23:49 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 16 Dec 2006 20:03:22 +0000 (12:03 -0800)
Add title attribute, which will be shown as popup on mouseover in
graphical web browsers, with full name of ref, including part (type)
removed from the name of ref itself. This is useful to see that this
strange ref is StGIT ref, or it is remote branch, or it is lightweigh
tag (with branch-like name).

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl

index ebf35a1e2bc10002486d45e3796a4f2f336dca8a..79e518a9122d7f0874f2e593aea141b4be28ef18 100755 (executable)
@@ -855,7 +855,8 @@ sub format_ref_marker {
                                $name = $ref;
                        }
 
-                       $markers .= " <span class=\"$type\">" . esc_html($name) . "</span>";
+                       $markers .= " <span class=\"$type\" title=\"$ref\">" .
+                                   esc_html($name) . "</span>";
                }
        }