* [PATCH 2/2 (resend)] gitweb: add '/' to the end of filename in page title for trees
2006-06-20 21:40 [PATCH 1/2 (resend)] gitweb: Add filename to page title if it is set Jakub Narebski
@ 2006-06-20 21:39 ` Jakub Narebski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Narebski @ 2006-06-20 21:39 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, Jakub Narebski
Signed-off-by: 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] 2+ messages in thread
* [PATCH 1/2 (resend)] gitweb: Add filename to page title if it is set
@ 2006-06-20 21:40 Jakub Narebski
2006-06-20 21:39 ` [PATCH 2/2 (resend)] gitweb: add '/' to the end of filename in page title for trees Jakub Narebski
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Narebski @ 2006-06-20 21:40 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, Jakub Narebski
Signed-off-by: Jakub Narebski
---
gitweb/gitweb.cgi | 3 +++
1 files changed, 3 insertions(+), 0 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] 2+ messages in thread
end of thread, other threads:[~2006-06-20 21:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20 21:40 [PATCH 1/2 (resend)] gitweb: Add filename to page title if it is set Jakub Narebski
2006-06-20 21:39 ` [PATCH 2/2 (resend)] gitweb: add '/' to the end of filename in page title for trees Jakub Narebski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.