{"thread":{"id":"4579","subject":"[PATCH 1/2] gitweb: Add filename to page title if set","startedAt":"2006-06-20T06:17:03Z","lastAt":"2006-06-20T06:22:08Z","messageCount":4,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"22106","messageId":"11507842063504-git-send-email-jnareb@gmail.com","threadId":"4579","inReplyTo":"11507842053885-git-send-email-jnareb@gmail.com","subject":"[PATCH 1/2] gitweb: Add filename to page title if set","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T06:17:03Z","receivedAt":"2006-06-20T06:17:03Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"---\n\n gitweb/gitweb.cgi |    5 ++++-\n 1 files changed, 4 insertions(+), 1 deletions(-)\n\na54751bb328072baed5446bdc4076f1e00002737\ndiff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi\nindex 12d5271..1e1a044 100755\n--- a/gitweb/gitweb.cgi\n+++ b/gitweb/gitweb.cgi\n@@ -260,7 +260,10 @@ sub git_header_html {\n \tif (defined $project) {\n \t\t$title .= \" - $project\";\n \t\tif (defined $action) {\n+\t\t\tif (defined $file_name) {\n+\t\t\t\t$title .= \" - $file_name\";\n+\t\t\t}\n \t\t}\n \t}\n \tprint $cgi->header(-type=>'text/html',  -charset => 'utf-8', -status=> $status, -expires => $expires);\n-- \n1.3.0\n"},{"id":"22107","messageId":"11507842053885-git-send-email-jnareb@gmail.com","threadId":"4579","inReplyTo":null,"subject":"[PATCH 0/2] gitweb: Enhance page title","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T06:17:03Z","receivedAt":"2006-06-20T06:17:03Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\nThis series of patches adds filename (with '/' at the end added for \ntrees, i.e. directories) to the page title, for easier bookmarking and \nviewing browser history.\n\nOn top of 'next', but should apply cleanly for 'master' too.\n"},{"id":"22108","messageId":"1150784206793-git-send-email-jnareb@gmail.com","threadId":"4579","inReplyTo":"11507842053885-git-send-email-jnareb@gmail.com","subject":"[PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T06:17:04Z","receivedAt":"2006-06-20T06:17:04Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"---\n\n gitweb/gitweb.cgi |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\nd17c119d32ae4c5dd50976ea6a255d2bcbe480ed\ndiff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi\nindex 1e1a044..42f3296 100755\n--- a/gitweb/gitweb.cgi\n+++ b/gitweb/gitweb.cgi\n@@ -263,6 +263,9 @@ sub git_header_html {\n \t\t\t$title .= \"/$action\";\n \t\t\tif (defined $file_name) {\n \t\t\t\t$title .= \" - $file_name\";\n+\t\t\t\tif ($action eq \"tree\" && $file_name !~ m|/$|) {\n+\t\t\t\t\t$title .= \"/\";\n+\t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n-- \n1.3.0\n"},{"id":"22110","messageId":"e7846d$uqn$1@sea.gmane.org","threadId":"4579","inReplyTo":"1150784206793-git-send-email-jnareb@gmail.com","subject":"Re: [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T06:22:08Z","receivedAt":"2006-06-20T06:22:08Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"This should of course be [PATCH 2/2]. I'm sorry for mistake.\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}