summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-06-20 06:17:03 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-20 20:46:30 (GMT)
commit7bedd9fc811df1fd865cebdae016f2f278501cc5 (patch)
tree306f71f9a13f1ee726ade732d4a7f78ebb2c3d59
parent57bd4d3523efecf60197040cad34154aff4ddf80 (diff)
downloadgit-7bedd9fc811df1fd865cebdae016f2f278501cc5.zip
git-7bedd9fc811df1fd865cebdae016f2f278501cc5.tar.gz
git-7bedd9fc811df1fd865cebdae016f2f278501cc5.tar.bz2
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.]
-rwxr-xr-xgitweb/gitweb.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 78e6dd0..dd228ba 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);