gitweb: A couple of page title tweaking

[jc: the e-mailed patch did not apply, so I had to guess but I think
 I got the result right.]
This commit is contained in:
Jakub Narebski 2006-06-20 06:17:03 +00:00 committed by Junio C Hamano
parent 57bd4d3523
commit 7bedd9fc81

View File

@ -261,6 +261,12 @@ sub git_header_html {
$title .= " - $project"; $title .= " - $project";
if (defined $action) { if (defined $action) {
$title .= "/$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); print $cgi->header(-type=>'text/html', -charset => 'utf-8', -status=> $status, -expires => $expires);