git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] gitweb: Add filename to page title if set
  2006-06-20  6:17 [PATCH 0/2] gitweb: Enhance page title Jakub Narebski
@ 2006-06-20  6:17 ` Jakub Narebski
  2006-06-20  6:17 ` [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees Jakub Narebski
  1 sibling, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2006-06-20  6:17 UTC (permalink / raw)
  To: git; +Cc: Jakub Narebski

---

 gitweb/gitweb.cgi |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

a54751bb328072baed5446bdc4076f1e00002737
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 12d5271..1e1a044 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -260,7 +260,10 @@ sub git_header_html {
 	if (defined $project) {
 		$title .= " - $project";
 		if (defined $action) {
+			if (defined $file_name) {
+				$title .= " - $file_name";
+			}
 		}
 	}
 	print $cgi->header(-type=>'text/html',  -charset => 'utf-8', -status=> $status, -expires => $expires);
-- 
1.3.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 0/2] gitweb: Enhance page title
@ 2006-06-20  6:17 Jakub Narebski
  2006-06-20  6:17 ` [PATCH 1/2] gitweb: Add filename to page title if set Jakub Narebski
  2006-06-20  6:17 ` [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees Jakub Narebski
  0 siblings, 2 replies; 4+ messages in thread
From: Jakub Narebski @ 2006-06-20  6:17 UTC (permalink / raw)
  To: git


This series of patches adds filename (with '/' at the end added for 
trees, i.e. directories) to the page title, for easier bookmarking and 
viewing browser history.

On top of 'next', but should apply cleanly for 'master' too.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees
  2006-06-20  6:17 [PATCH 0/2] gitweb: Enhance page title Jakub Narebski
  2006-06-20  6:17 ` [PATCH 1/2] gitweb: Add filename to page title if set Jakub Narebski
@ 2006-06-20  6:17 ` Jakub Narebski
  2006-06-20  6:22   ` Jakub Narebski
  1 sibling, 1 reply; 4+ messages in thread
From: Jakub Narebski @ 2006-06-20  6:17 UTC (permalink / raw)
  To: git; +Cc: Jakub Narebski

---

 gitweb/gitweb.cgi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

d17c119d32ae4c5dd50976ea6a255d2bcbe480ed
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 1e1a044..42f3296 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -263,6 +263,9 @@ sub git_header_html {
 			$title .= "/$action";
 			if (defined $file_name) {
 				$title .= " - $file_name";
+				if ($action eq "tree" && $file_name !~ m|/$|) {
+					$title .= "/";
+				}
 			}
 		}
 	}
-- 
1.3.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees
  2006-06-20  6:17 ` [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees Jakub Narebski
@ 2006-06-20  6:22   ` Jakub Narebski
  0 siblings, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2006-06-20  6:22 UTC (permalink / raw)
  To: git

This should of course be [PATCH 2/2]. I'm sorry for mistake.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-20  6:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20  6:17 [PATCH 0/2] gitweb: Enhance page title Jakub Narebski
2006-06-20  6:17 ` [PATCH 1/2] gitweb: Add filename to page title if set Jakub Narebski
2006-06-20  6:17 ` [PATCH 1/2] gitweb: add '/' to the end of filename in page title for trees Jakub Narebski
2006-06-20  6:22   ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).