Skip to content

Commit 14154ce

Browse files
committed
Merge branch 'jn/gitweb-no-logo' into maint
* jn/gitweb-no-logo: gitweb: make logo optional
2 parents ae830c2 + 6822052 commit 14154ce

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

gitweb/gitweb.perl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3516,10 +3516,15 @@ sub git_header_html {
35163516
insert_file($site_header);
35173517
}
35183518

3519-
print "<div class=\"page_header\">\n" .
3520-
$cgi->a({-href => esc_url($logo_url),
3521-
-title => $logo_label},
3522-
qq(<img src=").esc_url($logo).qq(" width="72" height="27" alt="git" class="logo"/>));
3519+
print "<div class=\"page_header\">\n";
3520+
if (defined $logo) {
3521+
print $cgi->a({-href => esc_url($logo_url),
3522+
-title => $logo_label},
3523+
$cgi->img({-src => esc_url($logo),
3524+
-width => 72, -height => 27,
3525+
-alt => "git",
3526+
-class => "logo"}));
3527+
}
35233528
print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / ";
35243529
if (defined $project) {
35253530
print $cgi->a({-href => href(action=>"summary")}, esc_html($project));

0 commit comments

Comments
 (0)