aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-12-15 23:49:12 +0100
committerJunio C Hamano <junkio@cox.net>2006-12-16 12:03:22 -0800
commit5fce278ef313d3b43a5df5bd0494ad23dc313d22 (patch)
treed99779d515edae23eb5132458be6a3bd13625c08 /gitweb
parent549ab4a30703012ff3a12b5455d319216805a8db (diff)
downloadgit-5fce278ef313d3b43a5df5bd0494ad23dc313d22.tar.gz
git-5fce278ef313d3b43a5df5bd0494ad23dc313d22.tar.xz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ebf35a1e2..79e518a91 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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>";
}
}