aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-01-13 11:39:18 -0800
committerJunio C Hamano <gitster@pobox.com>2011-01-13 11:39:18 -0800
commit477039c53c456273d59a1d5427fa6eb2deaaa239 (patch)
treec8d28271ac99e323ab45e8d798dd09693dde079f /gitweb
parent17e1c9e2fdf684422a91f0b1bc2e0926c1956651 (diff)
parent6822052427353525fe7158398bc6cf4bbd5d1351 (diff)
downloadgit-477039c53c456273d59a1d5427fa6eb2deaaa239.tar.gz
git-477039c53c456273d59a1d5427fa6eb2deaaa239.tar.xz
Merge branch 'jn/gitweb-no-logo'
* jn/gitweb-no-logo: gitweb: make logo optional
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl13
1 files changed, 9 insertions, 4 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 4e3bf4a06..1025c2f71 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3601,10 +3601,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));