gitweb: Hyperlink target of symbolic link in "tree" view (if possible)
commit3bf9d57051845cee996f73b5402a07cbeda84c88
authorJakub Narebski <jnareb@gmail.com>
Sun, 10 Dec 2006 12:25:48 +0000 (10 13:25 +0100)
committerJunio C Hamano <junkio@cox.net>
Tue, 12 Dec 2006 08:55:25 +0000 (12 00:55 -0800)
treef62ce17b06b6396a33305aae204bf0078648e450
parentca94601c8fcc4ddda4b48f05c748b3d52c54809c
gitweb: Hyperlink target of symbolic link in "tree" view (if possible)

Make symbolic link target in "tree" view into hyperlink to generic
"object" view (as we don't know if the link target is file (blob) or
directory (tree), and if it exist at all).

Target of link is made into hyperlink when:
 * hash_base is provided (otherwise we cannot find hash
   of link target)
 * link is relative
 * in no place link goes out of root tree (top dir)

Full path of symlink target from the root dir is provided in the title
attribute of hyperlink.

Currently symbolic link name uses ordinary file style (hidden
hyperlink), while the hyperlink to symlink target uses default
hyperlink style, so it is underlined while link target which is not
made into hyperlink is not underlined.

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