##// END OF EJS Templates
fixed file browser breadcrumbs with revision
marcink -
r104:4cea5270 default
parent child Browse files
Show More
@@ -72,12 +72,12 b' class _FileSizeFormat(object):'
72 72 class _FilesBreadCrumbs(object):
73 73
74 74 def __call__(self, repo_name, rev, paths):
75 url_l = [link_to(repo_name, url('files_home', repo_name=repo_name, f_path=''))]
75 url_l = [link_to(repo_name, url('files_home', repo_name=repo_name, revision=rev, f_path=''))]
76 76 paths_l = paths.split('/')
77 77
78 78 for cnt, p in enumerate(paths_l, 1):
79 79 if p != '':
80 url_l.append(link_to(p, url('files_home', repo_name=repo_name, f_path='/'.join(paths_l[:cnt]))))
80 url_l.append(link_to(p, url('files_home', repo_name=repo_name, revision=rev, f_path='/'.join(paths_l[:cnt]))))
81 81
82 82 return literal(' / '.join(url_l))
83 83
General Comments 0
You need to be logged in to leave comments. Login now