##// END OF EJS Templates
hgwebdir: show only trailing part of path when browsing subdirectories
Brendan Cully -
r4843:496ac05c default
parent child Browse files
Show More
@@ -140,6 +140,7 b' class hgwebdir(object):'
140 for name, path in self.repos:
140 for name, path in self.repos:
141 if not name.startswith(subdir):
141 if not name.startswith(subdir):
142 continue
142 continue
143 name = name[len(subdir):]
143
144
144 u = ui.ui(parentui=parentui)
145 u = ui.ui(parentui=parentui)
145 try:
146 try:
@@ -152,7 +153,7 b' class hgwebdir(object):'
152 if u.configbool("web", "hidden", untrusted=True):
153 if u.configbool("web", "hidden", untrusted=True):
153 continue
154 continue
154
155
155 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name[len(subdir):]])
156 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
156 .replace("//", "/")) + '/'
157 .replace("//", "/")) + '/'
157
158
158 # update time with local timezone
159 # update time with local timezone
General Comments 0
You need to be logged in to leave comments. Login now