{"thread":{"id":"4593","subject":"[PATCH 2/2 (resend)] gitweb: add '/' to the end of filename in page title for trees","startedAt":"2006-06-20T21:39:58Z","lastAt":"2006-06-20T21:40:08Z","messageCount":2,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"22166","messageId":"11508395823069-git-send-email-jnareb@gmail.com","threadId":"4593","inReplyTo":"11508395812645-git-send-email-jnareb@gmail.com","subject":"[PATCH 2/2 (resend)] gitweb: add '/' to the end of filename in page title for trees","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T21:39:58Z","receivedAt":"2006-06-20T21:39:58Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Signed-off-by: Jakub Narebski\n---\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":"22167","messageId":"11508395812645-git-send-email-jnareb@gmail.com","threadId":"4593","inReplyTo":null,"subject":"[PATCH 1/2 (resend)] gitweb: Add filename to page title if it is set","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-06-20T21:40:08Z","receivedAt":"2006-06-20T21:40:08Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Signed-off-by: Jakub Narebski\n---\n\n gitweb/gitweb.cgi |    3 +++\n 1 files changed, 3 insertions(+), 0 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"}]}