Skip to content

Commit 477039c

Browse files
committed
Merge branch 'jn/gitweb-no-logo'
* jn/gitweb-no-logo: gitweb: make logo optional
2 parents 17e1c9e + 6822052 commit 477039c

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
@@ -3601,10 +3601,15 @@ sub git_header_html {
36013601
insert_file($site_header);
36023602
}
36033603

3604-
print "<div class=\"page_header\">\n" .
3605-
$cgi->a({-href => esc_url($logo_url),
3606-
-title => $logo_label},
3607-
qq(<img src=").esc_url($logo).qq(" width="72" height="27" alt="git" class="logo"/>));
3604+
print "<div class=\"page_header\">\n";
3605+
if (defined $logo) {
3606+
print $cgi->a({-href => esc_url($logo_url),
3607+
-title => $logo_label},
3608+
$cgi->img({-src => esc_url($logo),
3609+
-width => 72, -height => 27,
3610+
-alt => "git",
3611+
-class => "logo"}));
3612+
}
36083613
print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / ";
36093614
if (defined $project) {
36103615
print $cgi->a({-href => href(action=>"summary")}, esc_html($project));

0 commit comments

Comments
 (0)