diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-01-19 08:26:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-01-19 08:26:47 -0800 |
commit | 14154ce3caaf572aed3c26fd52c389bd13a9c688 (patch) | |
tree | 38a8d8ad3d9776148bad3c7ea4de451d0a2a3f19 | |
parent | Merge branch 'jk/diff-driver-binary-doc' into maint (diff) | |
parent | gitweb: make logo optional (diff) | |
download | tgif-14154ce3caaf572aed3c26fd52c389bd13a9c688.tar.xz |
Merge branch 'jn/gitweb-no-logo' into maint
* jn/gitweb-no-logo:
gitweb: make logo optional
-rwxr-xr-x | gitweb/gitweb.perl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index fda9d30f37..aad93099d2 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3516,10 +3516,15 @@ EOF insert_file($site_header); } - print "<div class=\"page_header\">\n" . - $cgi->a({-href => esc_url($logo_url), - -title => $logo_label}, - qq(<img src=").esc_url($logo).qq(" width="72" height="27" alt="git" class="logo"/>)); + print "<div class=\"page_header\">\n"; + if (defined $logo) { + print $cgi->a({-href => esc_url($logo_url), + -title => $logo_label}, + $cgi->img({-src => esc_url($logo), + -width => 72, -height => 27, + -alt => "git", + -class => "logo"})); + } print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / "; if (defined $project) { print $cgi->a({-href => href(action=>"summary")}, esc_html($project)); |