@matheusbsbs / matheus-bagliano / commits / 51a7c66a73
Fork 0

gitweb: Make the Git logo link target to point to the homepage

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>

Junio C Hamano committed Sep 23, 2006 at 12:36 UTC 51a7c66a73ce74fad3b7b05109ed6ce013202fa5
1 file changed +6 -1
gitweb/gitweb.perl
+6 -1
@@ -51,6 +51,9 @@ our $logo = "++GITWEB_LOGO++";
51 # URI of GIT favicon, assumed to be image/png type
52 our $favicon = "++GITWEB_FAVICON++";
53
54 +our $githelp_url = "http://git.or.cz/";
55 +our $githelp_label = "git homepage";
56 +
57 # source of projects list
58 our $projects_list = "++GITWEB_LIST++";
59
@@ -1373,7 +1376,9 @@ EOF
1376 print "</head>\n" .
1377 "<body>\n" .
1378 "<div class=\"page_header\">\n" .
1376 - "<a href=\"http://www.kernel.org/pub/software/scm/git/docs/\" title=\"git documentation\">" .
1379 + "<a href=\"" . esc_html($githelp_url) .
1380 + "\" title=\"" . esc_html($githelp_label) .
1381 + "\">" .
1382 "<img src=\"$logo\" width=\"72\" height=\"27\" alt=\"git\" style=\"float:right; border-width:0px;\"/>" .
1383 "</a>\n";
1384 print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / ";