##// 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 140 for name, path in self.repos:
141 141 if not name.startswith(subdir):
142 142 continue
143 name = name[len(subdir):]
143 144
144 145 u = ui.ui(parentui=parentui)
145 146 try:
@@ -152,7 +153,7 b' class hgwebdir(object):'
152 153 if u.configbool("web", "hidden", untrusted=True):
153 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 157 .replace("//", "/")) + '/'
157 158
158 159 # update time with local timezone
General Comments 0
You need to be logged in to leave comments. Login now