From: Jakub Narebski Date: Tue, 20 Jun 2006 06:17:03 +0000 (+0000) Subject: gitweb: A couple of page title tweaking X-Git-Tag: v1.4.1-rc1~2^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7bedd9fc811df1fd865cebdae016f2f278501cc5;p=git.git 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.] --- diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 78e6dd034..dd228bab4 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -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);