##// END OF EJS Templates
webhelpers breadcrumbs bugfix
marcink -
r287:5827c739 default
parent child Browse files
Show More
@@ -170,12 +170,17 b' tooltip = _ToolTip()'
170 class _FilesBreadCrumbs(object):
170 class _FilesBreadCrumbs(object):
171
171
172 def __call__(self, repo_name, rev, paths):
172 def __call__(self, repo_name, rev, paths):
173 url_l = [link_to(repo_name, url('files_home', repo_name=repo_name, revision=rev, f_path=''))]
173 url_l = [link_to(repo_name, url('files_home',
174 paths_l = paths.split(' / ')
174 repo_name=repo_name,
175 revision=rev, f_path=''))]
176 paths_l = paths.split('/')
175
177
176 for cnt, p in enumerate(paths_l, 1):
178 for cnt, p in enumerate(paths_l, 1):
177 if p != '':
179 if p != '':
178 url_l.append(link_to(p, url('files_home', repo_name=repo_name, revision=rev, f_path=' / '.join(paths_l[:cnt]))))
180 url_l.append(link_to(p, url('files_home',
181 repo_name=repo_name,
182 revision=rev,
183 f_path='/'.join(paths_l[:cnt]))))
179
184
180 return literal(' / '.join(url_l))
185 return literal(' / '.join(url_l))
181
186
General Comments 0
You need to be logged in to leave comments. Login now