Skip to content

Commit

Permalink
gitweb: Make the Git logo link target to point to the homepage
Browse files Browse the repository at this point in the history
It provides more useful information for causual Git users than the Git docs
(especially about where to get Git and such).

People can override with GITWEB_CONFIG if they want to.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Acked-by: Petr Baudis <pasky@suse.cz>
  • Loading branch information
Junio C Hamano committed Oct 5, 2006
1 parent db94b41 commit 51a7c66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
# URI of GIT favicon, assumed to be image/png type
our $favicon = "++GITWEB_FAVICON++";

our $githelp_url = "http://git.or.cz/";
our $githelp_label = "git homepage";

# source of projects list
our $projects_list = "++GITWEB_LIST++";

Expand Down Expand Up @@ -1373,7 +1376,9 @@ sub git_header_html {
print "</head>\n" .
"<body>\n" .
"<div class=\"page_header\">\n" .
"<a href=\"http://www.kernel.org/pub/software/scm/git/docs/\" title=\"git documentation\">" .
"<a href=\"" . esc_html($githelp_url) .
"\" title=\"" . esc_html($githelp_label) .
"\">" .
"<img src=\"$logo\" width=\"72\" height=\"27\" alt=\"git\" style=\"float:right; border-width:0px;\"/>" .
"</a>\n";
print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / ";
Expand Down

0 comments on commit 51a7c66

Please sign in to comment.