@matheusbsbs / matheus-bagliano / commits / 5fce278ef3
Fork 0

gitweb: Add title attribute to ref marker with full ref name

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>

Jakub Narebski committed Dec 15, 2006 at 23:49 UTC 5fce278ef313d3b43a5df5bd0494ad23dc313d22
1 file changed +2 -1
gitweb/gitweb.perl
+2 -1
@@ -855,7 +855,8 @@ sub format_ref_marker {
855 $name = $ref;
856 }
857
858 - $markers .= " <span class=\"$type\">" . esc_html($name) . "</span>";
858 + $markers .= " <span class=\"$type\" title=\"$ref\">" .
859 + esc_html($name) . "</span>";
860 }
861 }
862