]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jn/gitweb-no-logo'
authorJunio C Hamano <gitster@pobox.com>
Thu, 13 Jan 2011 19:39:18 +0000 (11:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Jan 2011 19:39:18 +0000 (11:39 -0800)
* jn/gitweb-no-logo:
  gitweb: make logo optional

gitweb/gitweb.perl

index 4e3bf4a06b3779c19e068bc4720700805812ed40..1025c2f7165a7941ac8d13bff0e693cb3783b475 100755 (executable)
@@ -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));