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.]
Jakub Narebski committed
Jun 20, 2006 at 06:17 UTC
7bedd9fc811df1fd865cebdae016f2f278501cc5
1 file changed
+6
gitweb/gitweb.cgi
+6
@@ -261,6 +261,12 @@ sub git_header_html {
261
$title .= " - $project";
262
if (defined $action) {
263
$title .= "/$action";
264
+ if (defined $file_name) {
265
+ $title .= " - $file_name";
266
+ if ($action eq "tree" && $file_name !~ m|/$|) {
267
+ $title .= "/";
268
+ }
269
+ }
270
}
271
}
272
print $cgi->header(-type=>'text/html', -charset => 'utf-8', -status=> $status, -expires => $expires);