]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.cgi
gitweb: A couple of page title tweaking
[Gitweb] / gitweb.cgi
index 21e00aaf85b4f681c8591f4e453244e087cc7e3a268f05fed997dd9d0ac13082..7d50f0406171ec4783d03c0ce86f9db54e239038ce3e9b7a09979b7920900494 100755 (executable)
@@ -261,6 +261,12 @@ sub git_header_html {
                $title .= " - $project";
                if (defined $action) {
                        $title .= "/$action";
+                       if (defined $file_name) {
+                               $title .= " - $file_name";
+                               if ($action eq "tree" && $file_name !~ m|/$|) {
+                                       $title .= "/";
+                               }
+                       }
                }
        }
        print $cgi->header(-type=>'text/html',  -charset => 'utf-8', -status=> $status, -expires => $expires);
@@ -1518,7 +1524,7 @@ sub mimetype_guess {
 
        if ($mimetypes_file) {
                my $file = $mimetypes_file;
-               $file =~ m#^/# or $file = "$projectroot/$path/$file";
+               #$file =~ m#^/# or $file = "$projectroot/$path/$file";
                $mime = mimetype_guess_file($filename, $file);
        }
        $mime ||= mimetype_guess_file($filename, '/etc/mime.types');
This page took 0.212216 seconds and 4 git commands to generate.