Skip to content

Commit

Permalink
gitweb: A couple of page title tweaking
Browse files Browse the repository at this point in the history
[jc: the e-mailed patch did not apply, so I had to guess but I think
 I got the result right.]
  • Loading branch information
Jakub Narebski authored and Junio C Hamano committed Jun 20, 2006
1 parent 57bd4d3 commit 7bedd9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gitweb/gitweb.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bedd9f

Please sign in to comment.