Skip to content

Commit

Permalink
Merge branch 'jn/gitweb-no-logo'
Browse files Browse the repository at this point in the history
* jn/gitweb-no-logo:
  gitweb: make logo optional
  • Loading branch information
Junio C Hamano committed Jan 13, 2011
2 parents 17e1c9e + 6822052 commit 477039c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -3601,10 +3601,15 @@ sub git_header_html {
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));
Expand Down

0 comments on commit 477039c

Please sign in to comment.