author | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Jan 2011 16:26:47 +0000 (08:26 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Jan 2011 16:26:47 +0000 (08:26 -0800) |
* jn/gitweb-no-logo:
gitweb: make logo optional
gitweb: make logo optional
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index fda9d30f37ce40b6da55b9558eee8848b20ebef9..aad93099d271df4be10b35edd5e623cf5d7fcdac 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
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));